Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Introduction to WordPress Rest API
Search
Konstantinos Kouratoras
April 07, 2016
Programming
0
120
Introduction to WordPress Rest API
Konstantinos Kouratoras
April 07, 2016
Tweet
Share
More Decks by Konstantinos Kouratoras
See All by Konstantinos Kouratoras
How to Contribute to WordPress Community
kouratoras
0
53
Using WordPress for Web Development
kouratoras
0
250
Other Decks in Programming
See All in Programming
AI時代を生き抜く 新卒エンジニアの生きる道
coconala_engineer
1
420
AI 駆動開発ライフサイクル(AI-DLC):ソフトウェアエンジニアリングの再構築 / AI-DLC Introduction
kanamasa
11
3.8k
ZJIT: The Ruby 4 JIT Compiler / Ruby Release 30th Anniversary Party
k0kubun
0
270
マスタデータ問題、マイクロサービスでどう解くか
kts
0
120
開発に寄りそう自動テストの実現
goyoki
2
1.4k
俺流レスポンシブコーディング 2025
tak_dcxi
14
9.5k
TestingOsaka6_Ozono
o3
0
170
ELYZA_Findy AI Engineering Summit登壇資料_AIコーディング時代に「ちゃんと」やること_toB LLMプロダクト開発舞台裏_20251216
elyza
2
590
AI Agent Dojo #4: watsonx Orchestrate ADK体験
oniak3ibm
PRO
0
110
Findy AI+の開発、運用におけるMCP活用事例
starfish719
0
1.7k
20251212 AI 時代的 Legacy Code 營救術 2025 WebConf
mouson
0
210
GoLab2025 Recap
kuro_kurorrr
0
780
Featured
See All Featured
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
0
950
Raft: Consensus for Rubyists
vanstee
141
7.3k
The SEO identity crisis: Don't let AI make you average
varn
0
36
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
9.1k
Learning to Love Humans: Emotional Interface Design
aarron
274
41k
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
61
47k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.8k
Claude Code のすすめ
schroneko
65
200k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
90
Are puppies a ranking factor?
jonoalderson
0
2.4k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.7k
Transcript
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
INTRODUCTION TO WORDPRESS REST API
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
Hello! Tester @ OnTheGoSystems Follow me @kouratoras
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
WORDPRESS REST API
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
WORDPRESS REST API What else? :)
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
WORDPRESS REST API Application Program Interface
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
WORDPRESS REST API REpresentational State Transfer
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
• Actions • GET, POST, PUT, DELETE • Resources • GET /posts/ • GET /posts/12 • POST /posts/ • PUT /posts/13 • DELETE /posts/14
None
None
None
None
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
WORDPRESS REST API
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
PHP API the_post(), the_content(), the_title(), etc.
None
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
PHP API
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
PHP API
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
REST PHP API
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
• Javascript • Angular, React, Ember, Backbone, Node,… • Single Page Applications • Better interfaces • Mobile integration • Third party applications
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
HISTORY
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
• JSON API plugin • Ruby on Rails front-end (2009) • WP REST API • Google Summer of Code 2013 • Basic infrastructure in WordPress 4.4 • Full merge in 4.5? 4.6? 4.7?
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
INSTALLATION
None
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
• As any other WordPress plugin • Download, install and activate • https://wordpress.org/plugins/rest-api/ • Ready!
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
EXAMPLE
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
/wp-json/posts/21433
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
/wp-json/taxonomies
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
• GET Request • 200 OK • JSON Response • No Authentication
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
• /wp-json/posts/ • /wp-json/posts/21433 • /wp-json/pages • /wp-json/taxonomies • /wp-json/comments
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
/wp-json/users
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
• Authentication • Cookies (Onsite) • Basic Authentication, Application Passwords, OAuth authentication (Offsite)
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
EXTENSIONS
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
• Custom Endpoints • Custom Responses • Custom Content Types • JavaScript/Backbone Client • v2.wp-api.org/extending/javascript-client/
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
RESOURCES v2.wp-api.org github.com/WP-API/WP-API wordpress.org/plugins/rest-api
Konstantinos Kouratoras - 5th Crete WordPress Meetup - April 2016
THANK YOU! Questions?