Skip to content

Simple express server app to store items in an items.json file.

License

Notifications You must be signed in to change notification settings

ppedvOrtwin/simple-item-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Item Server

Description

Simple express server app to store items in an items.json file.

Methods

Get array of items

curl -X GET http://localhost:3000/items

Create one item

curl -X POST http://localhost:3000/items \
-H "Content-Type: application/json" \
-d "{\"id\":"1",\"name\":\"First Item\"}"

Update one item

curl -X PUT http://localhost:3000/items/1 \
-H "Content-Type: application/json" \
-d "{\"id\":"1",\"name\":\"Updated Item\"}"

Delete item by id

curl -X DELETE http://localhost:3000/items/1

About

Simple express server app to store items in an items.json file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published