Introducing Refit
Course Content
0 / 90 completedWhat is REST
The 6 constraints of REST
Resource naming and routing
Welcome
Who is the course for and prerequisites
What will you learn in this course
HTTP Verbs are meaningful
Understanding Idempotency
Flexible response body options
Using response codes to indicate status
Using hypermedia for connectedness
The different types of errors
Section recap
Creating the projects
Defining the movie API contracts
Creating the movies controller
The system we will build an API for
Creating a temporary database
Perfecting the movie creation endpoint
Introducing mapping
Keeping track of the endpoints
Implementing movie creation
Implementing movie retrieval
Implementing movie update
Section recap (2)
Implementing movie deletion
Why partial updates are not used
Moving to a real database
Implementing slug-based retrieval
Adding the database infrastructure code
Section recap (3)
Implementing validation
Adding a business logic layer
Cancellation token passing
Removing the old in-memory database
What is the JSON Web Token
Authentication and Authorization in REST APIs
The token generation service
Implementing JWT Authorization
Section recap (4)
Limiting actions for an admin
The concept of movie ratings
Preparing the database
Where should ratings live
Limiting actions for a trusted member
Using the user id
Section recap (5)
Deleting a rating
Updating the existing functionality to support ratings
Retrieving user ratings
Rating a movie
Sorting
Filtering
HATEOAS
Pagination
Advanced versioning
Basic versioning
Integrating versioning in Swagger
What is Swagger
Extending Swagger documentation
Integrating auth in Swagger
Adding health checks
Implementing API-key based auth
Section recap (6)
Implementing Output caching
Implementing Response caching
Implementing multiple auth
Why create an SDK
Creating the SDK project and the client example
Retrieving movies
Introducing Refit
Using the HttpClientFactory
Handling token generation and refreshing
Adding the remaining requests
Section recap (7)
Creating the new endpoint structure
Adding authentication
What are Minimal APIs
Migrating movie creation
Migrating movie listing
Migrating movie retrieval
Migrating movie update
Migrating movie deletion
Migrating rating endpoints
Section recap (8)
Updating versioning
Updating output cache
Updating Swagger
Course conclusion
Migrating Auth