Skip to content

[API] Openapi documentation in multiple proxy situations #290

@fjugipe

Description

@fjugipe

We need to enable a possibility for correct formulation of the API documentation when accessing it through a proxy.

Currently the API tries to load openapi.json from /openapi.json which does not work when accessing the API through a proxy i.e. https://example.proxy.com/e-soh/docs. In this scenario the /openapi.json request is forwarded to https://example.proxy.com/openapi.json and results to 404 or returning the proxys /openapi.json if there is one.

In this case also the server to be queried for the endpoints in swagger should be dynamically generated depending on which route the user is accessing the API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIFor issues and PR related to the APIsdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions