What problem does it solve?
Provide a consistent, opinionated approach to building HTTP endpoints using the Gin framework, including routing patterns, request binding, and standardized JSON responses so teams can ship reliable Go services rapidly.
Core Features & Use Cases
- Gin-based routing patterns: Centralized approach to define routes and handlers with clean separation between router, controllers, and use cases.
- JSON binding and responses: Use c.ShouldBindJSON for input and c.JSON for outputs to ensure consistent data formats.
- Standardized status codes: Return 200/201 on success, 400 for parsing/validation errors, 404 for not found, and 500 for internal failures.
- Modular architecture: Handlers belong to a dedicated package and rely on interfaces of Usecases, wired in router.go for dependency injection.
- Use Case readiness: Designed to plug into typical RESTful CRUD workflows for resources.
Quick Start
Configure Gin routes and handlers according to the patterns above, then run the API server to validate HTTP routing and JSON handling.