WP REST API


Talk by tomhermans.com

@tomhermans

Not that long ago in a browser
pretty, pretty close…

EPISODE 4.4
A NEW HOPE FOR A CMS

It is a period of civil unrest.

JavaScript MVC Troopers have driven the PHP rebels from their calm state of mind and are forcing them to rethink their paradigm.

Evading total annihilation, a group of freedom fighters have established a new base on the remote world called
THE WORDPRESS REST API

Howdy, I'm


www.tomhermans.com
@tomhermans

designer & developer

Worked for


Yelo Play
Telenet's digital TV web platform

“When 900 years old, you reach… Look as good, you will not.”

Cute new things

Angular 1 & 2

React & React Native

Backbone.js, Ember, ..

What isa

API ??

Application Program Interface

set of standardized ways

which govern how other pieces of software can talk to a program and how it will respond

THE
WordPress

REST API

WP API’s

XML-RPC & friends (atom..)

XML remote procedure call
mobile app

admin-ajax

lightweight routing layer
responds w/ JSON

RSS

open standard syndication format

RESTFUL API's

Twitter

Instagram

Facebook

WordPress.com

Stripe, .. and many more

What isa

REST ??

REST = representational state transfer

communicate via HTTP

same HTTP verbs (GET, POST, PUT, DELETE, etc.)

like web browsers use

to retrieve web pages and to send data to remote servers.

Pretty much everyone who claims to have
a REST API, in fact, does not.

Exception:

WWW

the World Wide Web

How is WWW restful ?

the recipient is basically agnostic
about what information it receives

so, REST uses HTTP to CRUD

HTTP to CREATE data : POST

HTTP to READ data : GET

HTTP to UPDATE data : PUT

HTTP to DELETE data : DELETE

Calypso

standalone app









Learn Javascript deeply,
you must

- Yoda
or was it Matt ?

Demo Time

Angular 2 REST API POC

this is a start, obviously
different paradigm,
different mindset,
different useage,
different tooling


Wanna talk ? Hit me up later

www.tomhermans.com
@tomhermans