wso2 / product-apim

Welcome to the WSO2 API Manager source code! For info on working with the WSO2 API Manager repository and contributing code, click the link below.
http://wso2.github.io/
Apache License 2.0
848 stars 786 forks source link

cannot get API Artifacts from WSO2 API Manager - Gateway(v2) #10195

Open rukmals opened 3 years ago

rukmals commented 3 years ago

Description:

Get API Artifacts, Get sequences from the storage, Get end-points from the storage for the API In the WSO2 API Manager - Gateway(v2) results "Server Error Occurred"

The following commands ,

curl -k -H "Authorization: Bearer xxxxxxxxxxxx" "https://127.0.0.1:9443/api/am/gateway/v2/sequence?apiName=PizzaSharkAPI&version=1.0.0&tenantDomain=registry.com"

curl -k -H "Authorization: Bearer xxxxxxxxxxxx" "https://127.0.0.1:9443/api/am/gateway/v2/api-artifact?apiName=PizzaSharkAPI&version=1.0.0&tenantDomain=registry.com"

curl -k -H "Authorization: Bearer xxxxxxxxxxxx" "https://127.0.0.1:9443/api/am/gateway/v2/end-points?apiName=PizzaSharkAPI&version=1.0.0&tenantDomain=registry.com"

produce the error,

{"code":900967,"message":"General Error","description":"Server Error Occurred","moreInfo":"","error":[]}

tharindu1st commented 3 years ago

@rukmals Can you try Basic authentication for this Rest API ?.