4. THE AWESOME
REST? BUT IM NOT TIRED.
WHAT IS REST? HOW IT WORKS DATA TRAVELLER 100WT FTW
MORE THAN A NAP POST/GET/PUSH/DELETE MAKE IT PORTABLE PRACTICLE USES
WPYALL
5. WHAT IS REST
The HIZZY
WHAT WHY MISSION
A simple web service REST requires less code to USE WordPress to manage
implemented using HTTP and implement than traditional data for an application that
the principles of REST. It is a methods. exists outside the realm of the
collection of resources, with WordPress install. Allow the
four defined aspects: REST offers greater flexibility application and the WP install
The base URI for the web service, such as http://example.com/ than other methods. to communicate and respond
resources/
to client interaction as well as
the Internet media type of the data supported by the web
service. This is often JSON, XML or YAML but can be any other Data can be served on the changes in data. Push
valid Internet media type.
rocks as JSON or neat as XML, notifications, real time data
sauce
The set of operations supported by the web service using HTTP
methods (e.g., GET, PUT, POST, or DELETE). as well as any other format
The API must be hypertext driven.[11] you may desire.
FROM WIKIPEDIA
7. DATA FORMATS
CSV XML JSON TEXT
There are several options when it comes to outputting your
data, there is no right or wrong, however, the most common
in my experience are XML and JSON
8. HOW IT WORKS
INFORMATION
HTTP REQUEST SERVER
DEVICE RESPONSE
REQUESTS ARE MADE TO THE SERVER WHICH RETURNS
THE STATUS AND THE DATA
9. HOW IT WORKS
{
“status”:”ok”,
“data”:
[{
“id”:1,
“title”:”the title”,
“content”:”content body”
},
{
“id”:1,
“title”:”the title”,
“content”:”content body”
}]
}
10. USE A PLUGIN
JSON API
http://wordpress.org/extend/plugins/json-api/
OR ROLL YOUR OWN
BECAUSE IT’S EASY AND EXTENDABLE
11. USE A THEME
CREATE AN API THEME
ALTERNATELY
BECAUSE IT’S HIGHLY CUSTOMIZABLE AND YOURS
12. PORTABILITY
1929 2012
Data was stored on pieces of paper so Modern folks can now store their data
the stock market crashed causing in WordPress. It can be accessed from
people to get real depressed and anywhere and from multiple platforms.
ended in a world war. The data is no longer tied to paper, or
the browser. People are happy and
This could have been avoided with use WordPress to end WAR.
WordPress.
I made most of this up, but you get the point
Portable Data is Happy Data