Fake api with express js
API helper to make development process easier. Using json data as fake storage, and lodash to manage data storage.
npm install
- Access it using
http://localhost:8080/api/:model/:id?
:model
is representing data from file in./model/data
:id
is representing the data primary key
GET
: request dataPOST
: creating new data or updating existing dataDELETE
: deleting existing data
Put json data on post method in body request
{
"name": "Food",
"description": "Main dishes"
}