Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix serverUrl in OpenAPI document #133

Merged
merged 3 commits into from
Nov 20, 2024

Conversation

lgoltz
Copy link
Contributor

@lgoltz lgoltz commented Nov 5, 2024

Before this PR the context path was used as start of the relative serverUrl, followed by "dataset/{datasetId}". If an Apache Webserver or NGINX is used and the configuration does not include the context path the serverUrl was wrong.
Example:
Requesting the OpenAPI document with https://ogc-api.server.de/datasets/test/api the OpenAPI document contains the serverUrl 'deegree-ogcapi/datasets/test/api'. The execution of requests with the Swagger UI results in invalid URLs: https://ogc-api.server.de/deegree-ogcapi/datasets/test/collections

This PR fixes the serverUrl in the OpenAPI document. Instead of the relative url an absolute url is used. Using the example above the serverUrl results in https://ogc-api.server.de/datasets/test/ and execution of request with the Swagger UI is possible.

@tfr42 tfr42 added enhancement Improvement of existing feature or function ready Work is done labels Nov 7, 2024
@tfr42 tfr42 added this to the 1.3.2 milestone Nov 7, 2024
@tfr42 tfr42 requested a review from dstenger November 7, 2024 15:23
@copierrj copierrj merged commit 8e00633 into deegree:main Nov 20, 2024
2 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement Improvement of existing feature or function ready Work is done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants