Upgrade to Pro — share decks privately, control downloads, hide ads and more …

APIs 101 with Postman

APIs 101 with Postman

If you’re completely new to APIs, this webinar is for you. In this session, Rishit and Aanchal talk about API basics with a practical walkthrough which you could follow along with us using Postman. And finally, we also send you some swag (courtesy of Postman).

Our Agenda:
- What is an API?
- Why you should use APIs?
- The basic components of an API request
- Building and sending API requests
- A live follow along demo :D
- Developers love swags, let's send you some

Rishit Dagli

July 16, 2021
Tweet

More Decks by Rishit Dagli

Other Decks in Programming

Transcript

  1. APIs 101 with Postman TEDx, TED-Ed Speaker Rishit Dagli @rishit_dagli

    Intern, Postman Aanchal Mishra @aanchalmishra_ 17 July 6 PM IST (GMT+5:30)
  2. Agenda 1 Intro to APIs and Postman 2 Requests and

    responses 3 Trying things out 4 Follow-up resources 5 Q&A go.postman.co/build
  3. • TEDx and 2xTED-Ed Speaker • I contribute to TensorFlow

    • I love🧡 ML Research • I love🧡 Hackathons • My coordinates - www.rishit.tech Rishit Dagli $ whoami @rishit_dagli
  4. What’s an API? And why should I use one? •

    Application Programming Interfaces (APIs) allow services to communicate with each other • Software has become more complex and collaborative over the years. Developers no longer need to create every service from scratch. • APIs allow developers to access data from a service (like Google or Twitter) without any knowledge of how the codebase has been implemented.
  5. There’s an API for everything Everything • The Cat API

    • OpenWeatherMap • Genius • Discord • Youtube-to-MP3 • Spotify • Twitter • Facebook • Google • And so many more!
  6. More than 500,000 organizations & 13 Million developers use Postman

    98% of Fortune 500 Organizations use Postman 65% of Global 2000 Organizations use Postman Postman is a collaborative API development platform that simplifies creating, using, and testing APIs with a UI What is Postman?
  7. Making Requests The three ingredients to make a request: •

    Method (GET, POST, etc) • Address/Endpoint (URL) • Path How we interact with the API
  8. Requests - Methods and Endpoints Method GET Retrieve information POST

    Send information PUT/PATCH Update information DELETE Delete information address of the server Bare minimum for a request https://www.google.com/search The scheme of the request Host Path Protocol destination where request can be heard and executed
  9. Specifying Detail Building your requests • Parameters ◦ In the

    query • Authorization • Headers and body ◦ Data types
  10. Requests - Body The data payload • Optional, but often

    supplied with POST and PUT requests • Data types ◦ form data ◦ JSON ◦ text ◦ HTML ◦ XML ◦ files ◦ GraphQL ◦ … and more! { “name”: “Jane Doe”, “email”: “[email protected]”, “birthYear”: 1970 } JSON
  11. Receiving Responses Response elements • Status codes (200 OK, 201

    Created, 404 Not found) • Headers • Accessing body data
  12. Recap We learned request essentials to retrieve and update API

    data: • Methods • Addresses • Parameters • Authorization • Body data
  13. Trying Things Out Create your own public workspace with a

    collection using any API of your choice postman.com Send it to us, and we’ll send cool swag to the coolest project https://bit.ly/apis101-feedback 1 2
  14. Q&A

  15. Thanks for coming! Have a question we didn’t cover? Tell

    us how the workshop went: bit.ly/apis101-feedback @rishit_dagli @aanchalmishra_