Releases: rameshsunkara/go-rest-api-example
Releases · rameshsunkara/go-rest-api-example
Makefile and Test execution improvements
- Updated Makefile to improve readability and maintainability
- Got rid of in memory mongodb usage for db test and used mtest from offical mongodb.
- Tests are now executed in parallel
- Updated redme to improve readbility
- Increased code coverage
v1.0.0 New features
Following are the newly added features
API Features:
- OWASP Compliant Open API 3 Spec
- Middleware for
- Logging : Helps in debugging and monitoring
- Authentication : Placeholder for different authentication mechanisms
- Tracing by Request ID : Helps in debugging
- Panic Recovery : Helps in keeping the service up
- Common Security Headers : Keeps the service secure
- Query Params Validation : Helps in keeping the service secure
- Standard Error Handling
- All errors are handled and returned in a standard format
- Versioning
- Model Management
- Generally, the data model used internally is different from the data model exposed to the client.
This helps in keeping the internal model separate from the exposed model.
- Generally, the data model used internally is different from the data model exposed to the client.
Go Application Features:
- Configuration Management through Environment Variables
- A Makefile to do all common tasks
- A Git Action to build, run tests, generate code coverage
- Integrated GO Formatter and Linter
- Mechanism to load secrets from Sidecar
- Enables connecting to multiple databases
- Follows the best practices for connecting to MongoDB
- Good mocking practises for Unit test patterns
- Standard filename conventions for better readability