A walk-through rest APIs best practices
- build and run project:
go run main.go
- Navigate to 'http://localhost:3030/api/v1/swagger/index.html' in your browser
- API first draft - http://localhost:3030/api/v1/swagger/index.html
- Naming convention - http://localhost:3030/api/v2/swagger/index.html
- Http method types - http://localhost:3030/api/v3/swagger/index.html
- API versioning - http://localhost:3030/api/v4/swagger/index.html
- Use http status code - http://localhost:3030/api/v5/swagger/index.html
- Simplify client side - http://localhost:3030/api/v6/swagger/index.html
- More robust API - http://localhost:3030/api/v7/swagger/index.html
- Relation between resources - http://localhost:3030/api/v8/swagger/index.html