Unlike GET requests, POST requests can contain a request body. Postman displays the API response in the Response section. Postman sends the request to the provided endpoint and shows the result. Use the URL field to set the endpoint URL.Since the GET method is selected by default, you don’t need to select the method.Pick a name that suits your request best.icon, and then click on the Add request link. Add a new request by hovering your mouse over your collection of choice (if you don’t have any, please create one now), click on the little. Follow the below steps to make your first request in Postman. Typically, we use GET requests for retrieving data from an API. With the core concepts out of our way, let’s use Postman for sending a basic GET request. For more information about the available endpoints, please consult the documentation for each API. If that’s the case, you can use Rick & Morty API or HTTP Bin API. The chances are that you don’t have an API handy to try out Postman with it. Requests are defined and configured by you using the Postman GUI. Postman’s requests are instructions for Postman to send HTTP requests to any API. As the name suggests, collections help you organize your workspace.Ĭollections offer features to collaborate with the team members, generate tests for your API, run the requests automatically, authorization config, pre-request scripts, and any variables you want to share among the collection’s requests. Postman’s API testing features are available for Personal, Private, and Public workspaces.Ī Postman collection consists of a group of HTTP requests. They are searchable and accessible for free.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |