Postman: Are Places To Organize Your API Requests in Postman
Postman: Are Places To Organize Your API Requests in Postman
Types of API
Some traits of REST APIs include not storing session state between requests, the ability to cache, and
the ability to send and receive various data types.
Postman is an API platform for building and using APIs. Postman simplifies each step of the API
lifecycle and streamlines collaboration so you can create better APIs faster and consume them with
ease.
GET – Read
POST – Create
PUT/PATCH – Update put replaces an entire resource whereas patch usually is for partial updates
DELETE – Delete
Code range Meaning Example
200 - OK
2xx Success 201 - Created
204 - No content (silent OK)
a request URL
GET https://some-api.com/photos?orientation=landscape
Scripting in Postman
Postman allows you to add automation and dynamic behaviors to your collections
with scripting.
Postman will automatically execute any provided scripts during two events in the
request flow:
The pm object
Postman has a helper object named pm that gives you access to data about your
Postman environment, requests, responses, variables and testing utilities.
For example, you can access the JSON response body from an API with:
pm.response.json()
You can also programmatically get collection variables like the value of baseUrl with:
pm.collectionVariables.get(“baseUrl”)
pm.collectionVariables.set(“myVar”, “foo”)