Skip to content

Conversation

@sonnes
Copy link
Collaborator

@sonnes sonnes commented Oct 6, 2025

  • Introduced xapi package for building type-safe HTTP APIs in Go.
  • Implemented Endpoint, Middleware, and Error handling structures.
  • Added example tests demonstrating usage of endpoints with middleware and custom error handling.

@codecov-commenter
Copy link

codecov-commenter commented Oct 6, 2025

Codecov Report

❌ Patch coverage is 95.83333% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.38%. Comparing base (bfd090e) to head (bd28b81).

Files with missing lines Patch % Lines
xapi/error.go 75.00% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main      #64       +/-   ##
===========================================
- Coverage   98.55%   83.38%   -15.18%     
===========================================
  Files          49       60       +11     
  Lines        1318     2810     +1492     
===========================================
+ Hits         1299     2343     +1044     
- Misses         19      454      +435     
- Partials        0       13       +13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Ravi Atluri added 3 commits October 9, 2025 12:03
- Introduced xapi package for building type-safe HTTP APIs in Go.
- Implemented Endpoint, Middleware, and Error handling structures.
- Added example tests demonstrating usage of endpoints with middleware and custom error handling.
- Created go.mod for module management.
…api package

- Introduced interfaces for extracting request data, validating requests, setting custom status codes, and writing raw responses.
- Updated Endpoint handler to utilize these new interfaces for improved request handling and response customization.
- Updatedexample tests to demonstrate usage of the new features, including custom response writing and request validation.
@sonnes sonnes merged commit 6ce2a14 into main Oct 10, 2025
1 check passed
@sonnes sonnes deleted the xapi branch October 10, 2025 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants