Simple express server app to store items in an items.json file.
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