feat(api): remove _search endpoint and integrate q search support int…#125
feat(api): remove _search endpoint and integrate q search support int…#125pasibun wants to merge 2 commits into
Conversation
…o list and filter APIs [deploy-test]
|
✅ Changie-fragment gevonden. |
Super-linter summary
All files and directories linted successfully For more information, see the GitHub Actions workflow run Powered by Super-linter |
There was a problem hiding this comment.
Pull request overview
This PR removes the dedicated /v1/apis/_search endpoint and integrates q search support into the existing list (/v1/apis) and filter (/v1/apis/filters) endpoints, updating routing, models, repository filtering, OpenAPI documentation, and tests accordingly.
Changes:
- Removed the
_searchroute/controller/service/repository API surface and corresponding tests. - Added
qquery parameter support to list and filter endpoints (models + repository filtering logic). - Updated OpenAPI spec, integration tests, and changelog to reflect the new API behavior.
Reviewed changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| pkg/api_client/services/api_service.go | Removes SearchApis service method; list/filter flows rely on unified filtering. |
| pkg/api_client/services/api_service_test.go | Removes SearchApis tests; extends list tests to assert forwarding of q. |
| pkg/api_client/services/api_service_oas_test.go | Updates repository stub to match removed SearchApis interface method. |
| pkg/api_client/routers.go | Removes /apis/_search route; updates descriptions to mention optional q. |
| pkg/api_client/repositories/api_repositorie.go | Removes DB-backed SearchApis; adds q matching into compiled filter matcher. |
| pkg/api_client/repositories/api_repositorie_test.go | Adds coverage asserting filter counts respect q and list filtering accepts it. |
| pkg/api_client/models/list_apis_search_params.go | Deletes now-obsolete search params model used only by _search. |
| pkg/api_client/models/list_apis_params.go | Adds Query (q) and forwards it into ApiFiltersParams. |
| pkg/api_client/models/filter.go | Adds Query (q) to ApiFiltersParams so filters endpoint can apply search term. |
| pkg/api_client/integration_test.go | Updates integration tests to use /v1/apis?q=... instead of /v1/apis/_search. |
| pkg/api_client/handler/api_handler.go | Removes controller handler for /apis/_search; list handler remains. |
| pkg/api_client/handler/api_handler_test.go | Removes _search handler test and unused imports/stubs. |
| api/openapi.json | Removes /apis/_search path; adds reusable Search parameter and references it from list/filter endpoints. |
| .changes/unreleased/Changed-20260512-180509.yaml | Adds changelog entry documenting the endpoint removal and new q support. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…erals and add corresponding tests [deploy-test]
Super-linter summary
All files and directories linted successfully For more information, see the GitHub Actions workflow run Powered by Super-linter |
…o list and filter APIs [deploy-test]