• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

SAP-cloud-infrastructure / hermez / 16177016604

09 Jul 2025 06:15PM UTC coverage: 55.677% (+2.2%) from 53.461%
16177016604

push

github

web-flow
pkg/api: refactor to use httpapi composition pattern (#317)

* pkg/api: refactor to use httpapi composition pattern

- replace manual mux.Router with httpapi.Compose()
- add V1API, VersionAPI, Metrics Api with AddTo() methods
- Standardize as much as possible with go-bits respondwith patterns
- Rename ReturnJSON to ReturnESJSON to indicate it's specific ES requirements
- move utilities to fovused files (response.go, middleware.go)

* pkg/api/server.go Remove duplicate log line

Co-authored-by: Simon Olander <simon.olander@sap.com>

* http.Error instead of wrapper

---------

Co-authored-by: Simon Olander <simon.olander@sap.com>

148 of 203 new or added lines in 6 files covered. (72.91%)

1 existing line in 1 file now uncovered.

559 of 1004 relevant lines covered (55.68%)

4.38 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

57.14
/pkg/api/api.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc