Skip to content

coding-mentorship-program/node-api-menu-jsondb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node API menu with JSON db

A simple ES5 API with full CRUD writing to a local JSON file

Example paths, body and query

 # GET - read
 PATH: http://localhost:4040/
# POST - add
  PATH: http://localhost:4040/
  BODY: { "title": "Monster Apple Pie", "description": "Fresh daily baked apple pie with monster super vanilla ice cream"}
# PUT - update
  BODY: { "title": "Monster Apple Pie", "description": "Fresh daily baked apple pie with monster super vanilla ice cream"}
  PATH: http://localhost:4040/?title=Apple Pie
  QUERY: title=Apple Pie
# DELETE
  PATH: http://localhost:4040/?title=American Hotdog
# DELETE all
  PATH: http://localhost:4040/delete-all

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published