Hello coders!!!
I Learned about API, Postman, Request-Response pattern, and status codes. Well, the part I most enjoyed was the hands-on practice part, where we practiced different methods - Get, Put, Post, and Delete.
Thanks to #PostmanStudent
My learning experience of Postman API 101 Workshop:
API - Application Programming Interface :
Introduction:
Recently, I attended a Postman API 101 workshop, and I would like to share my learning experience with you. Postman is a popular API development tool used to create, test, and document APIs. In this blog, I will give you an overview of API, what is Postman, different status code families, and share my learning experience by explaining the steps we followed during the workshop.
API - Application Programming Interface:
API stands for Application Programming Interface. It is a set of protocols, routines, and tools used to build software applications. APIs allow different applications to interact and communicate with each other. For example, when you use Google Maps on your phone to navigate, the application sends a request to the Google Maps API to fetch the required information.
What is Postman?
Postman is an API development tool used to create, test, and document APIs. It allows developers to send HTTP requests, test APIs, and see responses in real-time. Postman provides an easy-to-use interface and supports a variety of request methods such as GET, POST, PUT, DELETE, etc. With Postman, you can also create and save collections of API requests, share them with your team, and collaborate on API development.
1. Creating fork to your workspace:
Go to this link and fork this basics of API workspace link
Link for Documentation
2. We worked with the Joke API:
path -> "{base_url}: http://postman-student.herokuapp.com/"
By default, we have 4 jokes with id [0-3]
To get a random joke: {base_url}/joke
To get a specific joke: {base_url}/joke/{id of joke}
Different Request methods Implementation:
a. Get Method: To retrieve information
Different Status Code Families:
HTTP status codes are a part of the HTTP protocol, which is used to exchange data between a server and a client. Status codes provide information about the request's success or failure and help in troubleshooting issues. There are five status code families in HTTP:
Informational (100-199)
Successful (200-299)
Redirection (300-399)
Client Error (400-499)
Server Error (500-599)
Follow These Steps:
Creating a fork to your workspace:
In the workshop, we were given a GitHub repository link containing the API we were going to test. The first step was to fork the repository to our workspace so that we could modify it as per our requirements.
We worked with the Joke API:
We used the Joke API, which provides random jokes based on different categories such as programming, miscellaneous, etc. We created a request to the API and set the category parameter to "programming." We then sent the request and received a response from the API in JSON format.
Conclusion:
Overall, the Postman API 101 workshop was a great learning experience for me. It provided me with an in-depth understanding of APIs and how to use Postman to test and document them. I hope this blog has given you an idea of what to expect in a Postman workshop and how to get started with API testing using Postman.
Top comments (0)