What is JSON
●JavaScript Object Notation
●Supports Strings, Numbers, Booleans, Arrays, and
Objects
●Client side communication between different domain
servers through callback(JSONP)
REST Best Practices
●API located at base URL, i.e. http://example.com/api
●Separate actions for GET, POST, PUT, and DELETE
●Maintain a Version History
●Get a SSL certificate
●Keep it simple
The Setup
●Download source from WP Plugin Repo, or GitHub for
beta version
●Activate the Plugin
●Go to http://yourdomain.com/wp-json/posts and view your
recent posts in JSON
●Easy right!
Now Lets Extend It A Bit!
●Change JSON Response Output
●Create custom endpoints