$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
A Day of REST 2016
Search
Ryan McCue
January 28, 2016
Programming
5
910
A Day of REST 2016
"Introduction to the WP REST API" - A brief history of the REST API plugin.
Ryan McCue
January 28, 2016
Tweet
Share
More Decks by Ryan McCue
See All by Ryan McCue
What’s Fair is FAIR: A Decentralised Future for WordPress Distribution
rmccue
0
380
Next Generation WordPress
rmccue
4
470
WordCamp Europe 2015
rmccue
1
430
WordCamp Brisbane 2015
rmccue
3
1.2k
WCNYC2014
rmccue
5
570
WCMKE2014
rmccue
5
3.5k
Introduction to Git + Using Git with WordPress
rmccue
8
1.9k
Other Decks in Programming
See All in Programming
AIコーディングエージェント(skywork)
kondai24
0
200
FluorTracer / RayTracingCamp11
kugimasa
0
250
AIコーディングエージェント(Manus)
kondai24
0
210
AIエージェントの設計で注意するべきポイント6選
har1101
5
2k
愛される翻訳の秘訣
kishikawakatsumi
3
340
大規模Cloud Native環境におけるFalcoの運用
owlinux1000
0
180
SwiftUIで本格音ゲー実装してみた
hypebeans
0
480
Denoのセキュリティに関する仕組みの紹介 (toranoana.deno #23)
uki00a
0
150
俺流レスポンシブコーディング 2025
tak_dcxi
14
9.4k
The Art of Re-Architecture - Droidcon India 2025
siddroid
0
120
tsgolintはいかにしてtypescript-goの非公開APIを呼び出しているのか
syumai
7
2.3k
0→1 フロントエンド開発 Tips🚀 #レバテックMeetup
bengo4com
0
310
Featured
See All Featured
Code Reviewing Like a Champion
maltzj
527
40k
From π to Pie charts
rasagy
0
88
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
81
A better future with KSS
kneath
240
18k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
0
180
Design in an AI World
tapps
0
97
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.3k
Heart Work Chapter 1 - Part 1
lfama
PRO
3
35k
RailsConf 2023
tenderlove
30
1.3k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
66
Statistics for Hackers
jakevdp
799
230k
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.3k
Transcript
Introduction to the REST API Ryan McCue Senior Engineer at
Human Made
What is the API?
What is the API?
Why is the API? A history of the API
Existing WordPress APIs
XML-RPC Existing APIs & friends Most powerful:
JSON-RPC Existing APIs
Existing APIs
JSON-RPC Existing APIs
admin-ajax Existing APIs & friends Most developer friendly:
RSS Existing APIs & friends Most used:
RSS.js Existing APIs
Existing APIs
RSS.js Existing APIs
The World Wide Web
World Wide Web
None
None
None
None
World Wide Web
None
None
World Wide Web
None
None
WordPress.com API
None
.com API …REST?
None
.com API WordPress.com specifics
None
.com API Inspiration
.com API Unification
Birth of a Plugin
None
JSON
JSON Language Support
None
None
None
JSON Not XML
JSON JSONP
JSON
None
JSON
None
JSON
JSON /**/callback({…
REST
REST Browser Support
REST RPC
REST Challenges
Response Format
Responses Breaking from Core Names
Responses Posts ID => id post_content => content post_name =>
slug
Responses Comments comment_ID => id comment_content => content post_name =>
slug
Responses Terms term_id => id name => name slug =>
slug
Responses Users ID => id display_name => name user_nicename =>
slug
Responses Enveloping
None
Responses $ http demo.wp-api.org/wp-json/v2/wp?_envelope HTTP/1.1 200 OK { "body": {
"name": "WP API Demo", "description": "Just another WordPress site”, "_links": { ... }, "headers": { "Allow": "GET" }, "status": 200 }
Responses HAL
None
Responses JSON Schema
Infrastructure
Infrastructure Request & Response
Infrastructure Separation of Concerns
Infrastructure REST Server vs Rewrites
Problems
Problems It’s New
Problems Meta
Problems Authentication
Bad / Good?
Help Us!
Thanks. speakerdeck.com/rmccue