41

REST API - Themed€¦ · apis via http resources uris actions http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

  • Upload
    others

  • View
    10

  • Download
    0

Embed Size (px)

Citation preview

Page 1: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil
Page 2: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

theRESTfulfuture of

WordPress

Page 3: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

Phil Crumm Director of

Strategic Opportunities, 10up

@pcrumm / @10up

Page 4: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

rest apibasics

Page 5: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

API (noun) A contract provided by one piece of computer software for another. - Chris Beach, StreetLend

Page 6: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

Application A When you ask where you are, I will reply with a zip code.

Application B Where am I?

Application A 90210

Page 7: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

restful interfaces are…

Page 8: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

uniform

Page 9: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

stateless

Page 10: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

cacheable

Page 11: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

client-server

Page 12: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

layered

Page 13: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

HTTP

RESTful Interfaces

Page 14: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

apis via http resources <-> uris

actions <-> http verbs

Page 15: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

component resource POST/person/philGET/person/philPUT/person/phil

DELETE/person/phil

Page 16: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

rest apiwordpress+

Page 17: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

2008

Page 18: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

2010

Page 19: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

2014

Page 20: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

2016

Page 21: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

2016

REST API

Page 22: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

state of the api

Page 23: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

wordpress 4.4 (dec ’15)

rest api internals merged

anyone can build an api!

Page 24: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

soon (formerly WP 4.5)

core endpoints merged

Page 25: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

core endpoints posts • revisions • pages • media • post

types • post statuses • comments • taxonomies • categories • tags • users

Page 26: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

… + all wp-admin features?

Page 27: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

safe to use!

Page 28: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

a h e a dlooking

Page 29: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

wordpress the best place to create & store

your content

Page 30: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

wordpress + api the best place to share & access

your content

Page 31: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil
Page 32: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

createshare

your contentyour way

Page 33: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil
Page 34: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil
Page 35: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

electron

Page 36: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

custom frontends

Page 37: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

bespoke backends

Page 38: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

novel content applications

Page 39: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

flexibility of wordpress +

the open web

Page 40: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil

questions?

thank you!

Page 41: REST API - Themed€¦ · apis via http resources  uris actions  http verbs. component resource POST /person/phil GET /person/phil PUT /person/phil DELETE /person/phil