Skip to content

Conversation

@dmartinol
Copy link
Collaborator

Last part of #76

  • Removed upstream APIs from v0 route
  • The following endpoint remain, but I'm available to removed the unnecessary ones:
    • /health: used by the operator as the liveness probe URL of the deployed registry
    • /readiness: used by the operator as the readiness probe URL of the deployed registry
    • /version: probably not in use
    • /v0/info: initially used to distinguish b/w Toolhive and upstream registry API, it's probably useless now
    • /v0/openapi.yaml

@blkt If we aim to keep any of these, we probably need to update the API Design document

dmartinol and others added 15 commits November 20, 2025 10:38
Signed-off-by: Daniele Martinoli <dmartino@redhat.com>
Signed-off-by: Daniele Martinoli <dmartino@redhat.com>
Signed-off-by: Daniele Martinoli <dmartino@redhat.com>
Signed-off-by: Daniele Martinoli <dmartino@redhat.com>
Signed-off-by: Daniele Martinoli <dmartino@redhat.com>
Signed-off-by: Daniele Martinoli <dmartino@redhat.com>
Signed-off-by: Daniele Martinoli <dmartino@redhat.com>
Signed-off-by: Daniele Martinoli <dmartino@redhat.com>
Signed-off-by: Daniele Martinoli <dmartino@redhat.com>
Signed-off-by: Daniele Martinoli <dmartino@redhat.com>
Signed-off-by: Daniele Martinoli <dmartino@redhat.com>
Removed deprecated server listing endpoints from v0 API routes, keeping
only the registry info and OpenAPI spec endpoints. Fixed race condition
in OpenAPI YAML endpoint by caching the spec using sync.Once to prevent
concurrent access issues during parallel test execution.

Updated Swagger documentation to reflect the removal of unused schema
types (ServerDetailResponse, ServerSummaryResponse, EnvVarDetail,
ListServersResponse) that were previously duplicated.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@dmartinol dmartinol requested a review from blkt November 20, 2025 15:42
dmartinol and others added 3 commits November 20, 2025 16:43
Signed-off-by: Daniele Martinoli <dmartino@redhat.com>
Signed-off-by: Daniele Martinoli <dmartino@redhat.com>
@codecov-commenter
Copy link

codecov-commenter commented Nov 20, 2025

Codecov Report

❌ Patch coverage is 38.46154% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 63.94%. Comparing base (d15206f) to head (567cf54).

Files with missing lines Patch % Lines
internal/api/v0/routes.go 38.46% 5 Missing and 3 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #149      +/-   ##
==========================================
- Coverage   65.14%   63.94%   -1.21%     
==========================================
  Files          50       50              
  Lines        2677     2585      -92     
==========================================
- Hits         1744     1653      -91     
- Misses        807      809       +2     
+ Partials      126      123       -3     

☔ 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.

dmjb
dmjb previously approved these changes Nov 20, 2025
Copy link
Member

@dmjb dmjb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to see so much deleted code :)

blkt
blkt previously approved these changes Nov 20, 2025
Signed-off-by: Daniele Martinoli <dmartino@redhat.com>
@dmartinol dmartinol dismissed stale reviews from blkt and dmjb via 567cf54 November 20, 2025 16:52
@dmartinol dmartinol enabled auto-merge (squash) November 20, 2025 17:08
@dmartinol dmartinol requested a review from blkt November 20, 2025 17:09
@dmartinol dmartinol merged commit 524fa92 into stacklok:main Nov 20, 2025
10 checks passed
@dmartinol
Copy link
Collaborator Author

Happy to see so much deleted code :)

Yeah! The trend is pretty clear 😆
image

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.

4 participants