Beyond The Browser - Creating a RESTful Web Service With WordPress
HOWDY WPYall ENJOY SOME SOUTHERN FRIED CODE
Beyond the browser GETTING RESTful WITH WORDPRESS
AND BEING AWESOME PRESENTED BY CREDINGAKA CHRISTOPHER REDING
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
WHAT IS REST The HIZZY WHAT WHY MISSIONA simple web service REST requires less code to USE WordPress to manageimplemented using HTTP and implement than traditional data for an application thatthe principles of REST. It is a methods. exists outside the realm of thecollection of resources, with WordPress install. Allow thefour deﬁned aspects: REST offers greater ﬂexibility application and the WP installThe base URI for the web service, such as http://example.com/ than other methods. to communicate and respondresources/ to client interaction as well asthe Internet media type of the data supported by the webservice. This is often JSON, XML or YAML but can be any other Data can be served on the changes in data. Pushvalid Internet media type. rocks as JSON or neat as XML, notiﬁcations, real time data sauceThe set of operations supported by the web service using HTTPmethods (e.g., GET, PUT, POST, or DELETE). as well as any other formatThe API must be hypertext driven. you may desire.FROM WIKIPEDIA
USE A PLUGIN JSON APIhttp://wordpress.org/extend/plugins/json-api/OR ROLL YOUR OWN BECAUSE IT’S EASY AND EXTENDABLE
USE A THEMECREATE AN API THEME ALTERNATELY BECAUSE IT’S HIGHLY CUSTOMIZABLE AND YOURS
PORTABILITY 1929 2012Data was stored on pieces of paper so Modern folks can now store their datathe stock market crashed causing in WordPress. It can be accessed frompeople 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 andThis 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
MISSIONBy making data portable we can reach a larger audience.
FIND ME HERE FACEBOOK MYSPACEWWW.FACEBOOK.COM/CREDING WWW.MYSPACE.COM/CREDING TWITTER LINKEDIN WWW.TWITTER.COM/CREDING WWW.LINKEDIN.COM/CREDING
GO AND BE AWESOMETHANK YOU HTTP://CHRISTOPHERREDING.COM/
A particular slide catching your eye?
Clipping is a handy way to collect important slides you want to go back to later.