API-Portal Upgrade to V2 Breaks Documenations #575
-
What product are you having troubles with?Console What Console version are you using?13.2.0 DescriptionAfter upgrading the API-Portal as described in the migration docs, I am no longer able to excerise endpoints on the Old versions:
Actual OutcomeNew API-Portal w/o ability to use Expected OutcomeNew API-Portal, but no host information and broken |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi @dallas-fletchall , We need your open api definition to help you better.
And also, did you edit the default swagger-aggregator configuration? If yes, please send it to us |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick response. Our swagger-aggregator.json file is below {
"baseSwagger": {
"swagger": "2.0",
"consumes": ["application/json"],
"produces": ["application/json"],
"securityDefinitions": {
"oidc": {
"type": "oauth2",
"flows": {
"authorizationCode": {
"authorizationUrl": "https://example.com/oauth2/authorize",
"tokenUrl": "https://example.com/oauth2/token",
"scopes": {
"openid": "openId scope"
}
}
}
}
}
}
} After looking at how long that subswaggers document was, and being unsure what we want to disclose about our API, I looked into it a little harder. It seems that the The original servers object was: "servers": [
{"url":"http://tag-creation-webhook-consumer" },
{"url":"http://version-approval-api"}
] This led to the issues that we observed above. By changing the url of one of the servers, we got the functionality for that portion back. "servers": [
{"url":"/"},
{"url":"http://version-approval-api"}
] Can you confirm this is the issue? |
Beta Was this translation helpful? Give feedback.
-
Thanks for all the help. Please keep me informed if this gets updated. |
Beta Was this translation helpful? Give feedback.
Yes, that's was the issue.
You could add them in your
swagger-aggregator.json
configuration, inside thebaseSwagger
object but it's not yet possible to visualize the list on the API Portal and thus not usable. We already planned it and if you need it we can let you know when it's done.However, if your list of servers is inside a specific path, there is nothing you can do because the "nested" servers list override the "global" one.