It is a just simple REST API with Go using:
- Gin Framework
- Gorm
# Download this project
$ go get github.com/go-sql-driver/mysql
# Download Gin Framework
$ go get github.com/gin-gonic/gin
# Download GORM
$ go get github.com/jinzhu/gorm
- Go to Config/Database.go
- Update DBName, User, Password and Host, Port according to your database configuration
GET
: Get all todosPOST
: Create a todoGET
: Get a todoPUT
: Update a todoDELETE
: Delete a todo
{
"name": "Groceries shopping",
"description": "Biscuits, Tea, Milk, Soap, Powder",
}