package
module
Version:
v0.0.0-...-6db6ccc
Opens a new window with list of versions in this module.
Published: Feb 12, 2017
License: GPL-3.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
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 |
/ |
|
Documentation
¶
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.