From the course: Introducing Postman
Unlock the full course today
Join today to access over 22,700 courses taught by industry experts or purchase this course individually.
Provide examples - Postman Tutorial
From the course: Introducing Postman
Provide examples
- [Instructor] In addition to basic documentation Postman allows us to provide example request and response bodies to help anyone consuming our APIs understand how to use them and what to expect in response. Request examples can be an invaluable resource as they describe how the API responds to a request given a variety of situations. Consider our authenticate request. When we provide valid credentials we expect the server to respond with a valid token. Similarly, when we send invalid credentials we expect the response to indicate a failure. We could include this information in the requests description, but it seems more useful to provide the exact request and response structures. Examples allows us to do just that. Examples can be created manually, which is useful when you need to capture how you expect something under development to behave when completed. Similarly, we can send requests for each expected result, then capture the requests and responses as examples of the request…
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)
-
-