- Fun weekend to learn Golang!
This is a very simple RESTful API service for creating/viewing/updating/deleting TODO notes!
It is based on the guide by Saddam H
go run main/main.go
This will start the server at http://127.0.0.1:8080/api/v1/todos
go build main/main.go
Method | Type | Path | Params |
---|---|---|---|
Create a TODO | POST | / |
title, completed |
Fetch all TODOs | GET | / |
|
Fetch single TODO | POST | /id |
|
Update TODO | PUT | /id |
title, completed |
Delete TODO | DELETE | /id |
|
Delete all TODOs | DELETE | / |