API stands for Application Programming Interface • Probably the optimal word in all of this is Interface • A REST API gives you a new way of accessing your blog/site’s data
the_title(), the_content(), the_date() etc etc. • It’s how developers have interacted with WordPress since day one • The problem here is that you pretty much have to use PHP
the years • The now-official WordPress.org one has been forked from a plugin called ‘JSON API’ • This was first released in the plugin repository in 2009 • It was built as part of a project for the MoMA in New York. The project used Ruby on Rails. They had a Ruby on Rails frontend and a WordPress backend. • Due in WordPress core at some point (hopefully this year)
the web, for every interaction there have been two supercomputers involved. The supercomputer sitting in front of you and the supercomputer in a data centre somewhere. We have barely begun to take advantage of that supercomputer sitting in front of you.”
WordPress themes and plugins have been steadily doing more and more • It is relatively straightforward to have SPA elements within a multipage web application • Backbone has been included in WordPress core since 2012
• REST APIs centre around a series of verbs • GET, POST, PUT, DELETE • GET posts/pages/comments etc. • Edit and add posts/pages/comments via POST • DELETE posts/pages/comments etc.