WSO2 APIM- Store APIs get specific one based on multiple attributes

 

Problem Statement
I am using wso2 APIM 2.6.0 store APIs to get specific API details. The problem is that I have 3 APIs with the same name but different versions (pizzashackapi with version 1.0.0, pizzashackapi with version 1.1.0 and pizzashackapi with version 1.1.1 ) and I need to pass multiple parameters in the query section of the API to get more fine-grained result, however, it's not working as expected-

WSO2 Documentation It says Supported attribute modifiers are [version, context, status, description, subcontext, doc, provider, tag] but I am not able to pass the multiple attributes in the query section (Ref- https://docs.wso2.com/display/AM260/apidocs/store/#!/operations#APICollection#apisGet)

curl https://localhost:9443/api/am/store/v0.14/apis

I tried using the following Store API: 

https:/localhost:9443/api/am/store/v0.14/apis?query=pizzashackapi&version=1.1.0
https:/localhost:9443/api/am/store/v0.14/apis?query=name:pizzashackapi&version=1.1.0
https:/localhost:9443/api/am/store/v0.14/apis?query={name:pizzashackapi&version=1.1.0}
https:/localhost:9443/api/am/store/v0.14/apis?query=pizzashackapi-1.1.0
............
............
But none of the above worked :(

Solution
Use withe space between the two attributes of the API in query section or just use the plus sign '+' as follow as-
https:/localhost:9443/api/am/store/v0.14/apis?query=name:pizzashackapi version=1.1.0
https:/localhost:9443/api/am/store/v0.14/apis?query=name:pizzashackapi+version=1.1.0

And yes this would give the fine-grained result with 1 api named "pizzashackapi" with version 1.1.0


Ref: https://wso2-apim.slack.com/archives/CLVKGR3BN/p1618573018337400


Comments

Popular posts from this blog

Oracle SOA Suite- Implementing Email Notification

Oracle SOA Suite 12c- PKIX path building failed & unable to find valid certification path to requested target

Migration of Oracle SOA Suite Composite from 11g to 12c