![]() ![]() PUT: This method is used to update the existing data. PATCH: This method is used to update the existing data. POST: To send the new data to an API, we can use this method.ĭELETE: This is used to remove or delete the existing data. GET: This HTTP method is used to retrieve data from an API. Postman Tutorial Installation & Updates Postman Navigation Sending Your First Request Creating First Collection. There are multiple other methods available. Request Parameters in Postman with Sending API Requests, Collections, Variables, Mock Servers, Postman API, Authorizing Requests, Response in Postman, Postman Navigation, Installation and Updates etc. Once you enter the URL in the URL text field, the GET method will be selected for new requests by default. And if you use a third-party API, then you don't need to supply the URL, your API provider will supply the URL you need.For example,, where is the base URL and /java-tutorial, is the endpoint path. When you create an API, usually, the URL is the base location plus path.To access the API in Postman, you need to enter the URL, and each URL contains an endpoint. All API operation is usually associated with an endpoint, which is a place from where these APIs can access the resources that are required to perform their task. Setting Request URLsįor sending the request, you should have a URL that defines the API endpoint. Once you select the Send, you will get the following response. Step 7: Enter in the address bar and click on Send. Once you click on the save button, a new tab will open with your given request name. Step 6: Click on the Save button to create your request. Several authorization types are available in Postman. APIs use authorization details to make sure that the client requests access data safely. Step 5: Scroll down and click on + Create Collection.Įnter the collection Name (here, 'Collection-01' is my collection name) and click on the right mark. Authorizing requests include authenticating the identity of the client who sends the request and verifies whether the client is allowed to access and conduct the endpoint operations. The description section is optional we can leave it blank. Step 4: Once you select the Request option, you will be prompted to enter the request name, and you can also describe that API for future use. Step 3: Click on the Request option from the drop-down list. Once you click on the button, a drop-down menu will open. Step 2: Click on New option from the top left corner of the Postman homepage window. To create a request, follow the following steps: Other than you can optionally specify the number of additional information. And during this request creation process, you have to enter a URL and select the method. In the request, we can have many details. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |