Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utilize APIProvider to retrieve all APIs in admin REST API #12679

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nimsara66
Copy link
Contributor

Purpose

Fixes: wso2/api-manager#3241

Approach

The current implementation of the getAllAPIs method in the admin REST API relies on the searchPaginatedApis functionality from APIAdmin. This performs a content-based search that retrieves all APIs, API Products, and Documents, subject to a predefined constraint on the number of search results. As outlined in the issue, this approach may result in an empty API result set if the returned list only contains API Products and Documents.

This pr addresses the limitation by leveraging the APIProvider's searchPaginatedAPIs method, which directly retrieves all APIs from APIPersistence. This change ensures that the API results are not impacted by the presence of other entities such as API Products and Documents.

Replace `APIAdmin` content search implementation for APIs retrieval, `searchPaginatedApis` to `APIProvider` APIs search implementation `searchPaginatedAPIs`
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.

Inconsistent listing of APIs in Change API Provider feature
1 participant