- run
git clone https://github.com/dannylwe/crud-api-golang-go-gin-gorm
- run
go mod download
- run
go run main.go
path: /api/v1/todos
/people
GET
: Get all peoplePOST
: Post a person
/people/:id
GET
: Get a single personPUT
: Update a single personDELETE
: Delete a single person
{ "FirstName": "Bruce", "LastName": "Banner" }
├── 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