Today, I had an enlightening session diving into the world of APIs using Postman, and I couldn't wait to share my learnings with you all. KRISHANU BUJARBARUAH bhaiyia, a postman student leader and frequent hackathon participant, led this session followed by MAYANK ARORA founder of soarx network. And that's how it went on...
APPLICATION PROGRAMMING INTERFACE:
APIs act as intermediaries between different software systems, allowing them to interact and share data in a structured manner.
Whether you're fetching weather data, sending emails, or integrating payment gateways, APIs make it all possible.
Getting Started with Postman:
Postman is a powerful API testing tool that simplifies the process of sending requests to APIs and analyzing responses.. With its user-friendly interface and robust features, even beginners can quickly get up to speed.
Sending Requests and Responses:
In Postman, sending requests to APIs is as easy as pie. You can choose the request type (GET, POST, PUT, DELETE, etc.).Postman then displays the response in a clean and structured format, making it easy to inspect.
GET : This method requests the resource.
POST : This method is used to 'submit' or 'create' a resource.
PUT : This method is used to 'replace' an existing resource or
'create' one if not found.
PATCH : This method is used to 'modify' an existing resource and
is required to contain only the changes to the resource.
DELETE : As evident by it's name, this method is used to delete
the specified resource.
HANDS-ON EXPERIENCE:
We began with a PPT-focused introduction, and then we had a hands-on experience working with a basic API. Bhaiya kept us laughing with her constant quizzing on basic concepts.
We decided to work with the path "/joke" when using the endpoint URL, so that a random joke would appear with GET requests to the API.
To learn more about these methods, I would recommend you to visit this link
In addition, the session clarified everything that could be unclear or that one might want to know about when interacting with an API in Postman, including the Parameters, Body, and Header.
The session ended after an incredible experience:(
Working with APIs is a truly enjoyable experience with Postman.
Create them, test them, and enjoy yourself in the process!
Top comments (0)