Skip to content

Files

Latest commit

5bb62f6 · Jul 25, 2016

History

History
22 lines (18 loc) · 510 Bytes

README.md

File metadata and controls

22 lines (18 loc) · 510 Bytes

koa-CRUD

CURL commands to test

Create

curl --data '{"name": "New Item"}' http://localhost:8000/api/create -H 'content-type:application/json'

Read

curl -H 'content-type:application/json' http://localhost:8000/api/read

Update

curl -X 'PUT' --data '{"name": "Updated item"}' http://localhost:8000/api/update/1 -H 'content-type:application/json' 

Delete

curl  -X 'DELETE' http://localhost:8000/api/delete/2 -H 'content-type:application/json'