Postman
Fall 2023 | Vin Bui
Last updated
Was this helpful?
Fall 2023 | Vin Bui
Last updated
Was this helpful?
Postman is an API platform used by developers to test API calls. It is a powerful tool that we can use to build and design APIs.
You can download Postman . Once itβs installed, create an account.
To get started, create a Blank Workspace. Give it a name and set the access scope to whatever you like.
Make sure the Collections tab is selected, then click the +
button to create a new collection.
To add requests to this collection, click on the triple dots (β¦
) then select Add request.
Click on the triple dots (β¦
) next to your collection and select Add request.
Give it any name you want.
Select the request type: GET, POST, etc.
Enter the endpoint URL.
(Optional) Provide a request body or input query parameters.
For the request body, select Body > Raw > JSON. Then input body parameters in JSON format.
Click send to send the request
This is a GET request that does not take in any query parameters or request body. You can also see the status of the request (β200 OKβ).
This is a POST request that takes in a request body in the above JSON format. The server responds with a 200 status code and the member that we added.
If we tried to provide an invalid request, then the server responds with a 400 Bad Request status code and an error message.
Letβs fetch the FA23 AppDev Roster:
Letβs add a new member to the roster: