Skip to content

dannylwe/crud-api-golang-go-gin-gorm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codacy Badge

Installation and Run

  • run git clone https://github.com/dannylwe/crud-api-golang-go-gin-gorm
  • run go mod download
  • run go run main.go

API

path: /api/v1/todos

/people

  • GET: Get all people
  • POST: Post a person

/people/:id

  • GET: Get a single person
  • PUT: Update a single person
  • DELETE: Delete a single person

Post Payload

{ "FirstName": "Bruce", "LastName": "Banner" }

Structure

├── README.md
├── go.mod
├── go.sum
└── todo
    ├── common
    │   └── database.go
    ├── gorm.db
    ├── handlers
    │   └── person.go
    ├── main.go
    ├── migrations
    │   └── person.go
    ├── models
    │   └── person.go
    └── routers
        └── people.go

About

A Go CRUD api using Go-gin and Gorm. Ref: https://bit.ly/36NOgII & https://bit.ly/34OOgX3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages