Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
JSON REST API Current challenges and future impact
Slide 2
Slide 2 text
Rachel Baker @rachelbaker Senior Web Engineer, Lead Developer, JSON REST API Project
Slide 3
Slide 3 text
Democratize Publishing Mission:
Slide 4
Slide 4 text
USA Today
Slide 5
Slide 5 text
http://www.vogue.com/
Slide 6
Slide 6 text
Five Thirty Eight
Slide 7
Slide 7 text
No content
Slide 8
Slide 8 text
USA Today
Slide 9
Slide 9 text
Five Thirty Eight
Slide 10
Slide 10 text
Five Thirty Eight
Slide 11
Slide 11 text
http://open.nasa.gov/
Slide 12
Slide 12 text
http://open.nasa.gov/
Slide 13
Slide 13 text
http://open.nasa.gov/
Slide 14
Slide 14 text
http://open.nasa.gov/
Slide 15
Slide 15 text
Powers over 60 million sites Stats: Forbes, 2011
Slide 16
Slide 16 text
23.3% of active sites Stats: W3 Techs, December 2014
Slide 17
Slide 17 text
4.0 downloaded 29 million times Stats: WordPress.org, December 2014
Slide 18
Slide 18 text
Multi-functional
Slide 19
Slide 19 text
User-friendly
Slide 20
Slide 20 text
Powered by a popular (and hated) language
Slide 21
Slide 21 text
Backward compatible
Slide 22
Slide 22 text
Why do we need an API?
Slide 23
Slide 23 text
We made it to 11.
Slide 24
Slide 24 text
Relevance for 11 more years.
Slide 25
Slide 25 text
69.1% of the web doesn’t use a CMS.
Slide 26
Slide 26 text
Build new, or iterate on existing features.
Slide 27
Slide 27 text
No content
Slide 28
Slide 28 text
Continue the mission.
Slide 29
Slide 29 text
Challenges
Slide 30
Slide 30 text
60 million distributed APIs.
Slide 31
Slide 31 text
Drink.
Slide 32
Slide 32 text
11 years late.
Slide 33
Slide 33 text
Respect privacy expectations.
Slide 34
Slide 34 text
Secure authentication.
Slide 35
Slide 35 text
Different hosting environments.
Slide 36
Slide 36 text
Different WordPress versions.
Slide 37
Slide 37 text
Extensible with plugins.
Slide 38
Slide 38 text
Cannot deploy a bug fix.
Slide 39
Slide 39 text
Still has to be useful.
Slide 40
Slide 40 text
Quality clients.
Slide 41
Slide 41 text
Solutions
Slide 42
Slide 42 text
Drink.
Slide 43
Slide 43 text
Slow down we have a responsibility to not screw this up.
Slide 44
Slide 44 text
Err on the side of authentication.
Slide 45
Slide 45 text
Namespaced and versioned routes: wp/1.0/posts pluginname/2.0/events
Slide 46
Slide 46 text
OAuth1.0a and possibly OAuth2 through WordPress.org.
Slide 47
Slide 47 text
Educate our community and seek feedback from all communities.
Slide 48
Slide 48 text
Official client libraries.
Slide 49
Slide 49 text
Released version 1.0 and encourage everyone to start using it now.
Slide 50
Slide 50 text
Many are already using it in production New York Times Wired 10up Bocoup …and more
Slide 51
Slide 51 text
Future
Slide 52
Slide 52 text
No content
Slide 53
Slide 53 text
No content
Slide 54
Slide 54 text
No content
Slide 55
Slide 55 text
Backbone-based WordPress “themes”.
Slide 56
Slide 56 text
Customized Dashboards.
Slide 57
Slide 57 text
Customized Dashboards.
Slide 58
Slide 58 text
Front-end (inline) content editing.
Slide 59
Slide 59 text
Customized Dashboards.
Slide 60
Slide 60 text
WordPress has been the gateway drug for tens of thousands of web developers.
Slide 61
Slide 61 text
WordPress will be the gateway drug for tens of thousands of APIs.
Slide 62
Slide 62 text
Check it out
Slide 63
Slide 63 text
Read the Documentation wp-api.org
Slide 64
Slide 64 text
Install the Plugin github.com/WP-API/WP-API
Slide 65
Slide 65 text
Get the Schema http://example.com/wp-json/
Slide 66
Slide 66 text
Build Stuff and Give Feedback Posts ✔ ✔ ✔ ✔ Pages ✔ ✔ ✔ ✔ Custom Post Types ✔ ✔ ✔ ✔ Post Meta ✔ ✔ ✔ ✔ Media ✔ ✔ ✔ ✔ Comments ✔ ✔ ✔ ✔ Taxonomies/Terms ✔ ✔ ✔ ✔ Users ✔ ✔ ✔ ✔ GET POST PUT DELETE
Slide 67
Slide 67 text
Thank you github.com/WP-API
Slide 68
Slide 68 text
STEP ONE READ THE DOCUMENTATION
Slide 69
Slide 69 text
STEP TWO Install & Activate the Plugin
Slide 70
Slide 70 text
STEP THREE GET the API ScHEMA http://example.com/wp-json/
Slide 71
Slide 71 text
STEP THREE GET the API ScHEMA http://example.com/wp-json/
Slide 72
Slide 72 text
STEP FOUR GET the POSTS COLLECTION http://example.com/wp-json/posts/
Slide 73
Slide 73 text
http://example.com/wp-json/ STEP FOUR GET the POSTS COLLECTION
Slide 74
Slide 74 text
STEPs FIVE - Twenty-Two EXPLORE ALL THE POSSIBILITES Posts ✔ ✔ ✔ ✔ Pages ✔ ✔ ✔ ✔ Custom Post Types ✔ ✔ ✔ ✔ Post Meta ✔ ✔ ✔ ✔ Media ✔ ✔ ✔ ✔ Comments ✔ ✔ ✔ ✔ Taxonomies/Terms ✔ ✔ ✔ ✔ Users ✔ ✔ ✔ ✔ GET POST PUT DELETE
Slide 75
Slide 75 text
STEP Twenty-THREE - ?? Use the JSON REST API Use the JSON REST API plugin in/for a project. Give us feedback.