The api explorer is great but it is not dealing with server urls well.
Let's say I have a document like
openapi: '3.0.3'
info:
servers:
- url: /api
paths:
/init-app:
get:
description: >
Get some initial data for bootstrapping the static site.
responses:
'200':
description: >
Initial data for the static site.
content:
application/json:
schema:
$ref: '#/components/schemas/InitApp'
'401':
$ref: '#/components/responses/401'
'403':
$ref: '#/components/responses/403'
This document is effectively indicating that /api/init-app is an endpoint. Now if I mount my Pyramid application at /prefix (wsgi script_name) then I expect the api explorer and yaml file to be updated to reflect this situation.... for example the server url would be /prefix/api and the endpoint is /prefix/api/init-app.
Fixing this issue would make the document and explorer usable - right now I have to hardcode into my openapi.yaml document that the server url is actually url: /prefix/api.
The api explorer is great but it is not dealing with server urls well.
Let's say I have a document like
This document is effectively indicating that
/api/init-appis an endpoint. Now if I mount my Pyramid application at/prefix(wsgi script_name) then I expect the api explorer and yaml file to be updated to reflect this situation.... for example the server url would be/prefix/apiand the endpoint is/prefix/api/init-app.Fixing this issue would make the document and explorer usable - right now I have to hardcode into my openapi.yaml document that the server url is actually
url: /prefix/api.