Using Postman | Bondar Academy
Course: AI-based testing with testRigor
Module: Working with APIs
Instructor: Artem Bondar
Lesson Summary
This lesson covers how to use the Postman application for performing API calls . Postman is a user-friendly tool that helps in debugging API requests and preparing API mocks before implementation. Getting Started with Postman Download Postman from postman.com for Windows, Mac, or Linux. Create a free account and log in to access the application. Performing API Calls To make an API call: Open Postman and click on the plus tab to create a new request. Select the request type (GET, POST, etc.) from the dropdown. Enter the API endpoint URL and click Send . Example API Calls GET Request: Retrieve a list of tags or articles by entering the appropriate endpoint. POST Request: For signing in, provide the URL, body payload (username and password), and click Send . Handle responses, such as status codes 200 for success or 403 for forbidden access. Creating and Deleting Articles To create a new article: Manually create an article in the application to observe the payload. Simulate the creation in Postman by using the same endpoint and payload. Ensure to include the Authorization header for secured endpoints. For deleting an article, use the DELETE request with the article's slug ID and include the authorization header. Conclusion Postman is an effective tool for testing and debugging API requests. It allows users to save requests and practice before implementing them in scripts. Always ensure to provide the correct request type, URL, and authorization headers for secure connections.