This is a simple REST API built with Go.
git clone https://github.com/gustavocd/api-rest.git && cd api-rest
make run
Endpoint | Description | HTTP method |
---|---|---|
/api/notes |
Get all the notes | GET |
/api/notes |
Create a note | POST |
/api/notes/{id} |
Edit a note | PUT |
/api/notes/{id} |
Delete a note | DELETE |
Note: check the source code(models/note.go) to get the correct structure to make the json object 😄