From the course: Introducing Postman
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Authenticate requests - Postman Tutorial
From the course: Introducing Postman
Authenticate requests
- [Instructor] Collections and folders are more than mere containers. Both may contain additional information that controls how the requests within them behave. One such place is authentication. Many of the APIs we use require some form of authentication. Chances are that we need the same authentication data on each of the requests to a particular API. Consider the case of boards on our sample API. When we're not authenticated, the API returns only those boards marked as public. If we want to retrieve a particular user's private boards, we need to authenticate the request. Let's create a new request to get an authentication token, which we can attach to those subsequent requests. For this request, we'll be sending credentials to the API. Note that this uses clear text for demonstration purposes. APIs you use will likely have different requirements. We'll be sending data in the request body, so we need to change the HTTP method to Post. The sample API uses the slash auth route to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Workspaces2m 29s
-
(Locked)
Collections and folders5m 55s
-
(Locked)
Authenticate requests5m 35s
-
(Locked)
Using request history6m 5s
-
(Locked)
Document requests5m 51s
-
(Locked)
Provide examples2m 44s
-
View documentation2m 26s
-
(Locked)
Publish documentation1m 37s
-
(Locked)
Challenge: Organize and document28s
-
(Locked)
Solution: Organize and document2m 49s
-
(Locked)
-
-