apidays LIVE London 2021 - Reaching Maximum Potential in Banking & Insurance with API Mindset
October 27 & 28, 2021
API Lifecycle Management
Learning the Language of HTTP for a Better Data Experience
Chris Woodruff, Team Leader - Engineering at Rocket Homes
5. New York
JULY
Australia
SEPTEMBER
Singapore
APRIL
Helsinki & North
MARCH
Paris
DECEMBER
London
OCTOBER
Jakarta
FEBRUARY
Hong Kong
AUGUST
JUNE
India
MAY
Check out our API Conferences here
50+ events since 2012, 14 countries, 2,000+ speakers, 50,000+ attendees,
300k+ online community
Want to talk at one of our conferences?
Apply to speak here
10. What you Need to Know
Client
role
Server
role
Initiates interaction Responds to interaction
11. HTTP Method or Verbs
GET POST PUT
DELETE HEAD
Queries the
representation of a
resource
Changes the state
of the resource
Produces new or
replaces content of
existing resource
Deletes
resource
Same as GET but
without the
response body
12. HTTP Method or Verbs
PATCH TRACE OPTIONS CONNECT
Applies partial
modifications to a
resource
Preforms a
message loop-back
test to the target
resource
Determine options
and/or
requirements
associated with
resource
Establishes a
tunnel to server
identified by target
resource (SSL)
13. HEADER
BODY
Includes HTTP Verb and
Metadata
Includes data
you want to
transfer (i.e.,
text, pictures,
HTML, json, etc.)
HTTP Request
30. Representation State Transfer?
Client
Server
Revolver.HTML
• The Client references a resource using a URL
• A representation of the resource is returned
• When the Client selects a hyperlink in the resource it accesses another resource
• The new representation places the Client in a different state
• Thus, the Client transfers state with each resource representation.
http://musicstore.com/artists/thebeatles/revolver
31. Workflow for an HTTP Request
HTTP Request Method HTTP Path Parameters
Correct method? Path correct? Parameters valid?
GET | POST | … /api/albums/create ?Date=27 Aug2021sername=…
Method
allowed?
400 Authorized?
404
200
400
405
403
32. /Products
RESOURCE EXPECTED OUTCOME
VERB RESPONSE CODE
/Products?Color=green
/Products
/Products/81
/Products/881
/Products/81
/Products/81
GET
GET
POST
GET
GET
PUT
DELETE
A list of all products in the system
A list of all products in the system
where the color is green
Creation of a new product
Product with an ID of 81
No product with ID 881
Update of the product with ID of 81
Deletion of the product with ID of 81
200 OK
200 OK
201 Created
200 OK
404 Not Found
204 No Content
204 No Content
/Products/81 PUT Update of the product with ID of 81 304 Not Modified
Quiz!!
33. Understand
HTTP
Learn how to
use HTTP
verbs
Learn how to
use response
codes
Understand
REST
Learn how to
test RESTful
APIs
What to remember to build better APIs
36. New York
JULY
Australia
SEPTEMBER
Singapore
APRIL
Helsinki & North
MARCH
Paris
DECEMBER
London
OCTOBER
Jakarta
FEBRUARY
Hong Kong
AUGUST
JUNE
India
MAY
Check out our API Conferences here
50+ events since 2012, 14 countries, 2,000+ speakers, 50,000+ attendees,
300k+ online community
Want to talk at one of our conferences?
Apply to speak here