module
Version:
v0.0.0-...-7504a72
Opens a new window with list of versions in this module.
Published: Sep 7, 2020
License: MIT
Opens a new window with license information.
README
¶
Simple API built with golang
API
type Note struct {
ID uint64 `json:"id"` // read only
Title string `json:"title"`
Description string `json:"description"`
}
-
GET /notes/{noteID}
- get a single note
-
GET /notes
- get all notes
-
PUT /notes/{noteID}
- edit note
type Note struct {
ID uint64 `json:"id"` // read only
Title string `json:"title"`
Description string `json:"description"`
}
DELETE /notes/{noteID}
- delete note
Development
docker-compose up
Testing
make test
Click to show internal directories.
Click to hide internal directories.