JavaScript/JSON objects to REST API in seconds.
npm install js-api``bash`
npm install js-api
Start js-api server with some data:
`javascript
var jsapi = require('js-api');
var data = {posts: [{id: 'p1', title: 'first post', body: 'lorem ipsum'}]};
jsapi.start(data, 3000);
`
Now browse to http://localhost:3000/posts and you will see the posts in JSON format.
You can download the entire repo and start the example directly with:
`bash``
npm install
npm start
And browse to http://localhost:3000/posts to see the contents of the example.