In this video, explore the common HTTP verbs and why and how they differ. Also, explore idempotence and why it matters for RESTful APIs.
- [Instructor] HTTP methods are the verbs that act…on resources in a RESTful API.…You're probably familiar with GET and POST.…But what's the difference between POST and PUT?…Let's take a look at what the HTTP spec…has to say about these HTTP methods.…First, we'll review the most common verbs…that are used with RESTful endpoints.…GET is the most common and simplest HTTP verb you can use.…And it just retrieves the resource that you specify.…HEAD is less common, but also simple.…A HEAD request behaves exactly the same as the GET request,…but it only returns the HTTP headers…and doesn't return the resource itself.…
HEAD is useful when you need to look at headers…like Expires to control caching of resources.…Compared to methods like POST, which we'll look at next,…GET and HEAD are both read-only.…A GET or HEAD request should never…directly change any application state.…For example, a client shouldn't be able to update…or delete a resource with a GET request.…The HTTP spec calls methods that…shouldn't cause state changes safe methods.…
- What is RESTful design?
- Building a new API with ASP.NET Core
- Using HTTP methods
- Returning JSON
- Creating RESTful routing with templates
- Securing RESTful APIs with HTTPS
- Representing resources
- Representing links
- Representing collections
- Sorting and searching collections
- Building forms
- Adding caching to an ASP.NET Core API
- Configuring user authentication and authorization
Skill Level Intermediate
1. REST API Concepts
2. Build a Basic API
3. Versioning and Errors
4. Secure the API
5. Represent Resources
6. Represent Links
7. Represent Collections
Add pagination7m 37s
8. Sorting Collections
9. Searching Collections
10. Forms and Modifying Data
11. Caching and Compression
12. Authentication and Authorization
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.