WP-API / docs

The content for developer.wordpress.org/rest-api
https://developer.wordpress.org/rest-api
113 stars 625 forks source link

Way to get the client JavaScript library for REST API for remote apps #96

Open velara3 opened 4 years ago

velara3 commented 4 years ago

It looks like backbone.js is the client side library for making calls to the WP REST API. The documentation shows how to have WordPress add that library to the page but there are many apps that use WordPress as a CMS.

Could a section be added on how to separate and use the library in an external application or client?

Consider the use case where Morgan is making a mobile app but wants to display the blog posts in that app. He wants to use JS library independently to get those posts and allow users to comment from the app.

https://developer.wordpress.org/rest-api/using-the-rest-api/backbone-javascript-client/

TimothyBJacobs commented 4 years ago

I'm not sure if there is a recommended way to get that library outside of WordPress. cc @adamsilverstein.