Exploring API using Postman | Bondar Academy
Course: Playwright API Testing with TypeScript
Module: API Testing Basics
Instructor: Artem Bondar
Lesson Summary
In this lesson, we explore the API of the Conduit application using Postman to understand its functionality and structure. The process begins with exploratory testing to familiarize ourselves with the API's operations and components. Exploring API Requests To start, we log in as the PWAPI user and create a simple API request: Open the networking tab in the browser and refresh to view API requests. Identify the tags API endpoint and copy its URL. In Postman, select the GET method, paste the URL, and click Send . Receive a 200 status code with a list of tags in the response. Making Additional Requests Next, we perform another GET request for articles: Copy the articles URL and create a new request in Postman. Notice the response structure, which includes an array of article objects. Explore URL parameters such as limit and offset to control the number of returned articles. Creating and Deleting Articles We then move on to creating a new article: Use a POST request with a JSON body containing the article's title and description. Add the Authorization header with the token for secured requests. Receive a 201 status code indicating the article was created successfully. To delete an article: Use a DELETE request with the article's unique identifier (slug ID). Receive a 204 status code confirming the deletion. In summary, we learned how to: Perform GET , POST , and DELETE requests. Utilize URL parameters for GET requests. Handle authorization for secure API interactions. With this foundational understanding, we are ready to proceed with automation using Playwright in the next lesson.