Skip to content

Latest commit

 

History

History

next-js

Next.js course from Frontend masters

The course

Testing the notes api

GET one

curl http://host:port/api/notes/{noteId}

GET all

curl http://host:port/api/notes

POST

curl -X POST http://host:port/api/notes -H "Content-Type: application/json" -d '{ "title": "something to get done" }'

PATCH

curl -X PATCH http://host:port/api/notes/{noteId} -H "Content-Type: application/json" -d '{ "title": "updated" }'

DELETE

curl -X DELETE http://host:port/api/notes/{noteId}