a conversation about the wordpress json rest api
TRANSCRIPT
![Page 1: A Conversation About the WordPress JSON REST API](https://reader035.vdocuments.site/reader035/viewer/2022062523/587e88611a28abd6038b7dbf/html5/thumbnails/1.jpg)
HandsOnWP.com @nick_batik [email protected]
A Conversation About the WordPress
JSON REST APINick Batik
@nick_batik
![Page 2: A Conversation About the WordPress JSON REST API](https://reader035.vdocuments.site/reader035/viewer/2022062523/587e88611a28abd6038b7dbf/html5/thumbnails/2.jpg)
HandsOnWP.com @nick_batik [email protected]
PresenterNick Batik
Started in web development in 1994 and have been a WordPress consultant, and web developer since 2007. A WordPress evangelist, I’ve served as Austin WordPress Meetup co-organizer since 2010. With my partner, co-founded Pleiades Publishing Services in 1992 and Hands-On WordPress Training in 2010.
Follow me @nick_batik / @WPATX
Contact me at: handsonwp.com
![Page 3: A Conversation About the WordPress JSON REST API](https://reader035.vdocuments.site/reader035/viewer/2022062523/587e88611a28abd6038b7dbf/html5/thumbnails/3.jpg)
HandsOnWP.com @nick_batik [email protected]
WordPress JSON REST API
(and How It Could Change
WordPress Forever)
![Page 4: A Conversation About the WordPress JSON REST API](https://reader035.vdocuments.site/reader035/viewer/2022062523/587e88611a28abd6038b7dbf/html5/thumbnails/4.jpg)
HandsOnWP.com @nick_batik [email protected]
What We Will Cover
• Why Change?• From What? To What?• What is REST?• What does that mean to me?
![Page 6: A Conversation About the WordPress JSON REST API](https://reader035.vdocuments.site/reader035/viewer/2022062523/587e88611a28abd6038b7dbf/html5/thumbnails/6.jpg)
HandsOnWP.com @nick_batik [email protected]
Matt Mullenweg talked about Disruptive
Technology and WordPress
![Page 7: A Conversation About the WordPress JSON REST API](https://reader035.vdocuments.site/reader035/viewer/2022062523/587e88611a28abd6038b7dbf/html5/thumbnails/7.jpg)
HandsOnWP.com @nick_batik [email protected]
Disruptive Technology
a product or service that takes root initially at the
bottom of a market and then relentlessly moves up
market, eventually displacing established competitors.
![Page 9: A Conversation About the WordPress JSON REST API](https://reader035.vdocuments.site/reader035/viewer/2022062523/587e88611a28abd6038b7dbf/html5/thumbnails/9.jpg)
HandsOnWP.com @nick_batik [email protected]
Popular and polarizing technologies
Likes vs. Dislikes of 25 most mentioned technologies
.5 means it is disliked as often as liked
Source: Stack Overflow 2015 Developer Survey
![Page 10: A Conversation About the WordPress JSON REST API](https://reader035.vdocuments.site/reader035/viewer/2022062523/587e88611a28abd6038b7dbf/html5/thumbnails/10.jpg)
HandsOnWP.com @nick_batik [email protected]
Most Dreaded Technology
• Salesforce - 73.2%• Visual Basic - 72.0%• WordPress - 68.2%Source: Stack Overflow 2015 Developer Survey
![Page 11: A Conversation About the WordPress JSON REST API](https://reader035.vdocuments.site/reader035/viewer/2022062523/587e88611a28abd6038b7dbf/html5/thumbnails/11.jpg)
HandsOnWP.com @nick_batik [email protected]
Most popular programming languages
• Javascript - 54.4%• PHP - 29.7%Source: Stack Overflow 2015 Developer Survey
![Page 12: A Conversation About the WordPress JSON REST API](https://reader035.vdocuments.site/reader035/viewer/2022062523/587e88611a28abd6038b7dbf/html5/thumbnails/12.jpg)
HandsOnWP.com @nick_batik [email protected]
Compensation
• PHP - $77,322• Javascript - $90,259• Node.js - $96,534Source: Stack Overflow 2015 Developer Survey
![Page 13: A Conversation About the WordPress JSON REST API](https://reader035.vdocuments.site/reader035/viewer/2022062523/587e88611a28abd6038b7dbf/html5/thumbnails/13.jpg)
HandsOnWP.com @nick_batik [email protected]
Top Tools For Student Programmers
(Devpost survey of student hack-athons)
1. HTML/CSS
2. JavascriptSource: http://studenthackers.devpost.com/
![Page 14: A Conversation About the WordPress JSON REST API](https://reader035.vdocuments.site/reader035/viewer/2022062523/587e88611a28abd6038b7dbf/html5/thumbnails/14.jpg)
HandsOnWP.com @nick_batik [email protected]
Top Tools For Student Programmers
JavaScript Is Eating The World - Kevin Lacker, co-founder and chief technology officer of Parse. • Javascript on the browser• Javascript on the server ( Node.JS )• Javascript on the App ( ReactJS / React
Native )Source: http://arc.applause.com/2015/11/06/javascript-is-eating-the-world/
![Page 15: A Conversation About the WordPress JSON REST API](https://reader035.vdocuments.site/reader035/viewer/2022062523/587e88611a28abd6038b7dbf/html5/thumbnails/15.jpg)
HandsOnWP.com @nick_batik [email protected]
Summary
• Javascript is gaining popularity• PHP is loosing popularity
![Page 16: A Conversation About the WordPress JSON REST API](https://reader035.vdocuments.site/reader035/viewer/2022062523/587e88611a28abd6038b7dbf/html5/thumbnails/16.jpg)
HandsOnWP.com @nick_batik [email protected]
This is “Evolutionary”
Innovation.
Where is the “Disruptive” Innovation?
![Page 19: A Conversation About the WordPress JSON REST API](https://reader035.vdocuments.site/reader035/viewer/2022062523/587e88611a28abd6038b7dbf/html5/thumbnails/19.jpg)
HandsOnWP.com @nick_batik [email protected]
The web is built on an architectural style
called RESTRoy Fielding
![Page 20: A Conversation About the WordPress JSON REST API](https://reader035.vdocuments.site/reader035/viewer/2022062523/587e88611a28abd6038b7dbf/html5/thumbnails/20.jpg)
HandsOnWP.com @nick_batik [email protected]
Every Database Management System in
the world performs some variation of 4 basic
functions summarized as CRUD
![Page 21: A Conversation About the WordPress JSON REST API](https://reader035.vdocuments.site/reader035/viewer/2022062523/587e88611a28abd6038b7dbf/html5/thumbnails/21.jpg)
HandsOnWP.com @nick_batik [email protected]
Those same functions are baked
into the HTTP Protocol - GET, PUT,
POST, & DELETE
![Page 22: A Conversation About the WordPress JSON REST API](https://reader035.vdocuments.site/reader035/viewer/2022062523/587e88611a28abd6038b7dbf/html5/thumbnails/22.jpg)
HandsOnWP.com @nick_batik [email protected]
The Internet is the worlds largest single
DBMS.It just hasn’t been fully implemented.
![Page 23: A Conversation About the WordPress JSON REST API](https://reader035.vdocuments.site/reader035/viewer/2022062523/587e88611a28abd6038b7dbf/html5/thumbnails/23.jpg)
HandsOnWP.com @nick_batik [email protected]
Enter WordPress REST API
It implements the missing DBMS functions for the rest of the web.
![Page 25: A Conversation About the WordPress JSON REST API](https://reader035.vdocuments.site/reader035/viewer/2022062523/587e88611a28abd6038b7dbf/html5/thumbnails/25.jpg)
HandsOnWP.com @nick_batik [email protected]
WordPress becomes a fully-featured application
platform.By providing an agreed, standardized programmatic interface between WordPress and the outside world, the software opens itself up to every other application and development environment on earth.
![Page 26: A Conversation About the WordPress JSON REST API](https://reader035.vdocuments.site/reader035/viewer/2022062523/587e88611a28abd6038b7dbf/html5/thumbnails/26.jpg)
HandsOnWP.com @nick_batik [email protected]
Cutting the Cord with PHP
The REST API gives every language instant access to the full range of WordPress’ native functionality.
![Page 27: A Conversation About the WordPress JSON REST API](https://reader035.vdocuments.site/reader035/viewer/2022062523/587e88611a28abd6038b7dbf/html5/thumbnails/27.jpg)
HandsOnWP.com @nick_batik [email protected]
Custom Dashboards
The REST API separates the dashboard from the WordPress mechanics, allowing a custom theme to be created for the authenticated side of WordPress as well.
This means you can create custom dashboards for targeted niches.
![Page 30: A Conversation About the WordPress JSON REST API](https://reader035.vdocuments.site/reader035/viewer/2022062523/587e88611a28abd6038b7dbf/html5/thumbnails/30.jpg)
HandsOnWP.com @nick_batik [email protected]
Custom Dashboards
It also means you can create dashboards that look like Ghost, Joomla, Wix, Weebly, Squarespace, or whatever.
![Page 31: A Conversation About the WordPress JSON REST API](https://reader035.vdocuments.site/reader035/viewer/2022062523/587e88611a28abd6038b7dbf/html5/thumbnails/31.jpg)
HandsOnWP.com @nick_batik [email protected]
Front-End Editors
When any web page could potentially be a “dashboard” then any web page could also be an editor. We are seeing a rapid growth in this area, with examples such as:
• Frontkit• medium.js• Dante• medium-editor• grande.js• ZenPen• Pen
![Page 32: A Conversation About the WordPress JSON REST API](https://reader035.vdocuments.site/reader035/viewer/2022062523/587e88611a28abd6038b7dbf/html5/thumbnails/32.jpg)
HandsOnWP.com @nick_batik [email protected]
Winner • Javascript
programmers• App developers• Plugin developers• MySQL database
programmers
Losers • PHP programmers
Undecided • Dashboard
customizers• Theme developers