Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
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
100
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
46
Using WordPress for Web Development
kouratoras
0
240
Other Decks in Programming
See All in Programming
Ruby Function Composition
bkuhlmann
1
330
単体テストを書かない技術 #phpcon_odawara
o0h
PRO
26
8.2k
検証も兼ねて個人開発でHonoとかと向き合った話
hanetsuki
0
800
今、知っておきたい! 生成AIエージェントの世界
elith
3
350
"config" ってなんだ? / What is "config"?
okashoi
0
240
サイコロで理解する統計的仮説検定の考え方
tatamiya
4
900
Ruby GitHub Packages
bkuhlmann
0
630
Azure OpenAI Serviceのプロンプトエンジニアリング入門
tomokusaba
3
670
Snowflakeで眠ったデータを起こそう!
estie
0
110
Site Reliability Engineering for GMO
pyama86
7
1k
try! Swift Tokyo 初参加報告LT
hinakko2
0
220
try!Swift Tokyo 2024 参加報告 LT
akidon0000
1
220
Featured
See All Featured
Intergalactic Javascript Robots from Outer Space
tanoku
266
26k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
352
28k
Testing 201, or: Great Expectations
jmmastey
28
6.3k
A better future with KSS
kneath
231
16k
Become a Pro
speakerdeck
PRO
11
4.5k
Clear Off the Table
cherdarchuk
84
310k
The Art of Programming - Codeland 2020
erikaheidi
42
12k
YesSQL, Process and Tooling at Scale
rocio
164
13k
WebSockets: Embracing the real-time Web
robhawkes
59
7k
Art, The Web, and Tiny UX
lynnandtonic
289
19k
StorybookのUI Testing Handbookを読んだ
zakiyama
13
4.6k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3k
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?