Skip to content

feat(api): remove _search endpoint and integrate q search support int…#125

Open
pasibun wants to merge 2 commits into
mainfrom
122-search-meenemen-met-huidige-filtering
Open

feat(api): remove _search endpoint and integrate q search support int…#125
pasibun wants to merge 2 commits into
mainfrom
122-search-meenemen-met-huidige-filtering

Conversation

@pasibun
Copy link
Copy Markdown
Contributor

@pasibun pasibun commented May 12, 2026

…o list and filter APIs [deploy-test]

@pasibun pasibun linked an issue May 12, 2026 that may be closed by this pull request
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 12, 2026

✅ Changie-fragment gevonden.

@github-actions
Copy link
Copy Markdown

Super-linter summary

Language Validation result
JSON Pass ✅
OPENAPI Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 _search route/controller/service/repository API surface and corresponding tests.
  • Added q query 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.

Comment thread pkg/api_client/repositories/api_repositorie.go
…erals and add corresponding tests [deploy-test]
@github-actions
Copy link
Copy Markdown

Super-linter summary

Language Validation result
JSON Pass ✅
OPENAPI Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

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.

Search meenemen met huidige filtering

2 participants