gin-gorm-cloudsql-todo-app

command module
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2021 License: MIT Imports: 5 Imported by: 0

README

Api go simple

It is a just simple REST API with Go using:

  1. Gin Framework
  2. Gorm

Installation & Run

# 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

DB Setup

  1. Go to Config/Database.go
  2. Update DBName, User, Password and Host, Port according to your database configuration

API list

  • GET : Get all todos
  • POST : Create a todo
  • GET : Get a todo
  • PUT : Update a todo
  • DELETE : Delete a todo

Post Params

{
	"name": "Groceries shopping",
	"description": "Biscuits, Tea, Milk, Soap, Powder",
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL