This api is based on this post
- Clone repo
- Create project database
- Create
.env
file based on.env-example
- Configure
.env
file - Run
go run main.go
- Listen on
localhost:4000
Endpoint | Method | Params | Description |
---|---|---|---|
/people | GET | none | Get all People |
/people/{id} | GET | id | Get Person with ID |
/people | POST | Firstname, Lastname | Create a person |
/people/{id} | DELETE | id | Delete a person |
/people/list | POST | none | Create 1000 records |
[x] Example of smart commits [x] Example of smart commit with time