0% found this document useful (0 votes)
36 views28 pages

APIs 101 Workshop

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views28 pages

APIs 101 Workshop

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 28

APIs 101 with

Postman
Learn API essentials
Who I am

Your name
Your title (student, student Leader, etc) and where
you go to school

Your social media handles


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
APIs: A Digital Restaurant

Client Server
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.
APIs: A bit Technical
There’s an API for everything
Everything

● The Cat API ● Spotify


● OpenWeatherMap ● Twitter
● Genius ● Facebook
● Discord ● Google
● Youtube-to-MP3 ● And so many more!
APIS TURN SOFTWARE INTO LEGO® BRICKS
What is Postman?
Postman is a collaborative API development platform that simplifies
creating, using, and testing APIs with a UI

98%
of Fortune 500
Organizations use Postman

65%
of Global 2000
Organizations use Postman

More than 500,000 organizations & 13 Million developers use Postman


Working APIs: Then and Now

cURL Command Line Postman


Requests and Responses
Request-Response Pattern

Client Network Server

Request

API

Response

Resources
Services
Making Requests
How we interact with the API

The three ingredients to


make a request:
● Method (GET, POST, etc)
● Address/Endpoint (URL)
● Path
Requests - Methods and Endpoints
Bare minimum for a request

Method
address of the server
GET Retrieve information Host

POST Send information


https://www.google.com/search
PUT/PATCH Update information
Protocol Path
DELETE Delete information The scheme of destination where
the request request can be heard
and executed
Specifying Detail

Building your requests


● Parameters
○ In the query
● Authorization

● Headers and body


○ Data types
Requests - Body
The data payload

● Optional, but often supplied


with POST and PUT requests

● Data types JSON


○ form data
○ JSON {
○ text “name”: “Jane Doe”,
“email”: “[email protected]”,
○ HTML
“birthYear”: 1970
○ XML }
○ files
○ GraphQL
○ … and more!
Receiving Responses

Response elements

● Status codes (200 OK, 201


Created, 404 Not found)

● Headers

● Accessing body data


Follow Along
Navigate to and fork
https://tinyurl.com/3vt73u4c
Recap

We learned request essentials to


retrieve and update API data:
● Methods
● Addresses
● Parameters
● Authorization
● Body data
Continue Learning APIs as a Student
Expert
Student Expert certification indicates that you are proficient in the essential
skills involved in building and testing API requests in Postman, including:

● Sending more sophisticated requests in Postman.

● Editing documentation for a collection.

● Writing basic test scripts.

● Running collections, passing data between requests, and


scripting request execution order.

● Have the option to become a Student Leader in your


community
Postman Student Expert
Apply here: https://bit.ly/postman-student-program
Win
Amazing
Swag
Share your learnings with
#PostmanStudent
Public Workspace
1 2

Create your own public workspace with Send it to us, and we’ll send cool swag to
a collection using any API of your choice the coolest project
postman.com Submit your workspace URL to
organizers
Blog writing competition!
1 2

Write what you learned during the Send it to us, and we’ll send cool swag to
session on your favorite platform like the coolest blog
medium or dev.to Submit your blog URL to organizers
Use #PostmanStudent #PostmanAPI
Resources

learning.postman.com
Learning Center

explore.postman.com
API Network

community.postman.com
Forum
Q&A
Thanks for coming!

Tell us how the workshop went:


<Replace with feedback url>

Have a question we didn’t cover? Email me at [your email here]

You might also like