/goatron

Fun weekend to learn Golang!

Primary LanguageGoGNU General Public License v3.0GPL-3.0

Goatron - A RESTful TODO service!

- 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

Run

go run main/main.go This will start the server at http://127.0.0.1:8080/api/v1/todos

Build

go build main/main.go

Methods

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 /