Skip to content

Simple REST-y service built with Gin, MySQL, GORM

Notifications You must be signed in to change notification settings

davenathanael/gin-rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

  • Make sure you have a MySQL instance running at localhost:9306/gotest and user user:password. Refer to the Database section below
  • go run gin-rest/
  • Server will run at 8080

Routes

GET     /person         Get all Person records
GET     /person/:id     Get a Person record with given id
POST    /person         Create a new Person record
DELETE  /person/:id     Delete an existing Person record with given id
PUT     /person/:id     Update an existing Person record with given id and new values on request body

Database

  • Make sure you have Docker and docker-compose installed
  • run docker-compose -f ./db.dockercompose.yml up -d

About

Simple REST-y service built with Gin, MySQL, GORM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages