-
Task
-
Resolution: Done
-
Normal
-
None
-
3
-
False
-
-
False
-
Unset
-
No
-
-
-
Platform Pipeline Sprint 85, Platform Pipeline Sprint 86, Platform Pipeline Sprint 87
Many OpenAPI specs include a server property that does not include a fully qualified URL path to the spec.
Example from https://console.redhat.com/api/system-baseline/v1/openapi.json
servers: [
{
url: "/api/system-baseline/v1"
}
]
(See others APIs defined in RHINENG-2768)
Other APIs define a the full URL (https://console.redhat.com/api/ingress/v1/openapi.json)
[
{
url: "https://cloud.redhat.com/api/ingress/v1",description: "Production"
}
]
or https://console.redhat.com/api/compliance/v1/openapi.json
[ { url: "https://{defaultHost}/api/compliance", variables: { defaultHost: { default: "console.redhat.com" } } }, { url: "https://{defaultHost}/api/compliance/v1", variables: { defaultHost: { default: "console.redhat.com" } } } ]
Goal: Provide a property in the API Catalog definition file (Discovery.yml) that allows an override of the URL for the example code section.