仕様 : REST-API (CURLアクセス例)
- GET (get all)
- $ curl -X GET https://gunclock-api-express.herokuapp.com/gunclock
- GET (get one)
- $ curl -X GET https://gunclock-api-express.herokuapp.com/gunclock/5e508050de797e6001faa558
- POST (create)
- $ curl -X POST https://gunclock-api-express.herokuapp.com/gunclock -H 'Content-Type:application/json' -d '{ "color":"#ffcccc", "size": "15" }'
- PUT (update one)
- $ curl -X PUT https://gunclock-api-express.herokuapp.com/gunclock/5e508050de797e6001faa558 -H 'Content-Type:application/json' -d '{ "color":"#ccffcc", "size": "20" }'
- DELETE (delete one)
- $ curl -X DELETE https://gunclock-api-express.herokuapp.com/gunclock/5e50817cde797e6001faa559
|