Slide 1

Slide 1 text

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)

Slide 2

Slide 2 text

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

Slide 3

Slide 3 text

● 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

Slide 4

Slide 4 text

● Student Community Intern, Postman ● Tech and Communities 💖 Aanchal Mishra $ whoami @aanchalmishra__

Slide 5

Slide 5 text

ⓘ Start presenting to display the audience questions on this slide. Audience Q&A Session

Slide 6

Slide 6 text

APIs: A Digital Restaurant Client Server

Slide 7

Slide 7 text

APIs: A bit Technical

Slide 8

Slide 8 text

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.

Slide 9

Slide 9 text

There’s an API for everything Everything ● The Cat API ● OpenWeatherMap ● Genius ● Discord ● Youtube-to-MP3 ● Spotify ● Twitter ● Facebook ● Google ● And so many more!

Slide 10

Slide 10 text

APIS TURN SOFTWARE INTO LEGO® BRICKS

Slide 11

Slide 11 text

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?

Slide 12

Slide 12 text

Working APIs: Then and Now cURL Command Line Postman

Slide 13

Slide 13 text

Requests and Responses

Slide 14

Slide 14 text

Request-Response Pattern Client Server Request Response Resources Services Network API

Slide 15

Slide 15 text

Making Requests The three ingredients to make a request: ● Method (GET, POST, etc) ● Address/Endpoint (URL) ● Path How we interact with the API

Slide 16

Slide 16 text

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

Slide 17

Slide 17 text

Specifying Detail Building your requests ● Parameters ○ In the query ● Authorization ● Headers and body ○ Data types

Slide 18

Slide 18 text

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

Slide 19

Slide 19 text

Receiving Responses Response elements ● Status codes (200 OK, 201 Created, 404 Not found) ● Headers ● Accessing body data

Slide 20

Slide 20 text

Follow Along Navigate to and fork https://bit.ly/api101-workshop

Slide 21

Slide 21 text

Recap We learned request essentials to retrieve and update API data: ● Methods ● Addresses ● Parameters ● Authorization ● Body data

Slide 22

Slide 22 text

Win Amazing Swag

Slide 23

Slide 23 text

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

Slide 24

Slide 24 text

Share your learnings with #PostmanStudent

Slide 25

Slide 25 text

Slides: http://bit.ly/apis101-slides

Slide 26

Slide 26 text

Resources learning.postman.com Learning Center explore.postman.com API Network community.postman.com Forum

Slide 27

Slide 27 text

Register Now: https://studentsummit21.eventbrite.com/?aff=api101

Slide 28

Slide 28 text

Q&A

Slide 29

Slide 29 text

ⓘ Start presenting to display the audience questions on this slide. Audience Q&A Session

Slide 30

Slide 30 text

Thanks for coming! Have a question we didn’t cover? Tell us how the workshop went: bit.ly/apis101-feedback @rishit_dagli @aanchalmishra_