Skip to content

ibunubi/express-fake-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express Fake API

Fake api with express js

Description

API helper to make development process easier. Using json data as fake storage, and lodash to manage data storage.

Using

  • 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

URL method Detail

  • GET: request data
  • POST: creating new data or updating existing data
  • DELETE: deleting existing data

POST Example

Put json data on post method in body request

{
  "name": "Food",
  "description": "Main dishes"
}

About

fake api with express js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published