A mock JSON REST server
This product is a backend-as-a-service (BaaS) that lets you create and test REST APIs without having to write any code for the backend.
Most of the front-end developers require fake REST APIs for quick prototyping and testing, and this project can be easily consumed by letting you build entities of your choice, performing CRUD operations and filters on top of it.
Note: There is no validation added so that the entities created are as dynamic as possible.
npm install
cd node-mom
node index.js
/
Displays all the entities that you have created
/:entityName
BODY
{"key":"value"}
For creating a new entity (Add as many key value pair as you wish)
/:entityName/:id
For updating a specific entity
/:entityName/:id
For deleting a specific entity
/:entityName?<key=value>
/:entityName?_q=<value that you want to search>
/:entityName?_sort=<key>
/:entityName?order=<asc/dsc>
(Gives ascending results by default)
- Persistant storage in a file called store.json, where you can add your own JSON object
- No knowledge of backend + database needed to build the REST APIs
- Supports multiple search queries while filtering
- Search isn't supported for nested JSON objects