- The response you get from a REST API…depends on the authorization level you have…when you make the request.…Most REST APIs provide leveled access…meaning all users can submit limited…GET, HEAD, and OPTIONS requests.…Some users can submit POST requests…and a rare few users can submit…PUT, PATCH, and DELETE requests.…To get a quick view of this we can send…two HEAD requests to the same resource.…First, an unauthenticated request.…
For this unauthenticated request…the allow header down here on line 10 says, Allow: GET,…meaning anyone can send a GET request…to this resource but nothing else.…Now let's see what happens if I add…an authorization header to my requests.…To do so I'll go back to my request,…type in Authorization: and then say…this is basic authorization and provide…my user name and my password.…
Just before I continue, the local WordPress site…I'm working with is set up with Basic authentication…which is extremely insecure.…You can see I'm passing the username password…in clear text.…This would never happen anywhere online.…
- What is a REST API?
- Who or what interacts with REST APIs?
- Anatomy of a REST request
- HTTP status messages
- Request/response pairs
- GET, POST, and DELETE
Skill Level Beginner
HTTP Essential Trainingwith Morten Rand-Hendriksen50m 18s Beginner
1. REST API: Representational State Transfer Application Programming Interface
4. Request/Response Pairs
- 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.