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
WordPress Greek Community - 5th Crete Meetup - Introduction to WordPress REST API - Konstantinos Kouratoras
Search
WordPress Greek Community
April 07, 2016
Programming
0
520
WordPress Greek Community - 5th Crete Meetup - Introduction to WordPress REST API - Konstantinos Kouratoras
WordPress Greek Community
April 07, 2016
Tweet
Share
More Decks by WordPress Greek Community
See All by WordPress Greek Community
Enhancing WordPress and WooCommerce - Case study of ymca.gr
wpgr
0
26
Κατανόηση της καταναλωτικής συμπεριφοράς και διαμόρφωση στρατηγικής
wpgr
0
27
Συνδυαστικές στρατηγικές για Επιτυχημένο E- Commerce, Online Merchandising και Digital Marketing
wpgr
0
39
Ρυθμίσεις & styling μλοκ με χρήση του theme.json
wpgr
0
72
Marketing στην πράξη το 2023
wpgr
1
44
Το Metaverse και πώς σχετίζεται με το WordPress!
wpgr
0
77
Γνωριμία με την ομάδα Training
wpgr
0
15
Στρατηγική SEO content για e-commerce websites
wpgr
0
48
Είμαι Freelancer, πώς να κάνω personal branding
wpgr
0
32
Other Decks in Programming
See All in Programming
二郎系ラーメンのコールで学ぶ AST 解析
memory1994
PRO
7
1.7k
HUIT新歓2024「競技プログラミング、やってみませんか?」
slephy2784
1
250
try! Swift Tokyo 初参加報告LT
hinakko2
0
190
Ruby Function Composition
bkuhlmann
1
330
Blue/Greenデプロイの導入による 運用フローの改善
kudoas
1
350
SwiftUI Performance 不要なViewの再描画と更新を抑える
bigamitiongit
1
160
CA.swift19 恋するAIアプリ開発の裏側
oskmr
0
340
StreamlitとTerraformでデータカタログを作った話
gussan0223
0
300
Zero Waste, Radical Magic, and Italian Graft – Quarkus Efficiency Secrets
hollycummins
0
220
Rubyでたのしむクリエイティブコーディング/Enjoy Creative coding with Ruby
chobishiba
1
160
両面どころかインフラもTSでできるよ ~ 全方位TypeScriptによるプロダクト開発 ~
myfinder
9
3.2k
CQRS/ES avec Symfony, c’est (trop) bien !
jeremyfreeagent
1
630
Featured
See All Featured
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
39
4.4k
Writing Fast Ruby
sferik
620
60k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
321
20k
WebSockets: Embracing the real-time Web
robhawkes
59
7k
How to train your dragon (web standard)
notwaldorf
72
5.1k
Docker and Python
trallard
33
2.7k
Imperfection Machines: The Place of Print at Facebook
scottboms
258
12k
Teambox: Starting and Learning
jrom
128
8.4k
The Cult of Friendly URLs
andyhume
74
5.7k
Code Reviewing Like a Champion
maltzj
513
39k
The Mythical Team-Month
searls
215
42k
Art, The Web, and Tiny UX
lynnandtonic
288
19k
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?