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

API search with context does not support for exact matches #3554

Closed
BiyonFernando opened this issue Jan 29, 2025 · 1 comment
Closed

API search with context does not support for exact matches #3554

BiyonFernando opened this issue Jan 29, 2025 · 1 comment

Comments

@BiyonFernando
Copy link

Current Limitation

The Publisher Restful API[1] does not support the exact search for "context".

Steps to reproduce:

Create two APIs with the contexts of "test" and "test2".

Search the API using the URL below which gives two results.
https://127.0.0.1:9443/api/am/publisher/v3/apis?query=context:test

Search the API using the URL below which gives one result
https://127.0.0.1:9443/api/am/publisher/v3/apis?query=context:test2

Search the API using the URL below which gives 0 results
https://127.0.0.1:9443/api/am/publisher/v3/apis?query=context:"test"

[1] - https://apim.docs.wso2.com/en/4.1.0/reference/product-apis/devportal-apis/devportal-v2/devportal-v2/#tag/APIs/paths/~1apis/get

Suggested Improvement

Currently when doing exact search with context it is required to append version to the query. eg - context:"/test/1.0.0"
To fix this we need to allow user to search all APIs which containing specified context. eg - context:"test"

Version

wso2am-4.5.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants