Use full URL instead of relative path
- Issue Reference: #68
- Added configuration
api.server.fullUrl.enabled
to enable full server url in OpenAPI swagger - Currently only in Azure it is enabled. For Other [CSP/Common Core] there is no change.
- Added the property
server.servlet.contextPath
to the test properties otherwise it fails when initializing the server for springboot unit tests.
Configuration Details
-
api.server.fullUrl.enabled=true
It will generate full server url in the OpenAPI swagger -
api.server.fullUrl.enabled=false
It will generate only the contextPath - Reference: https://springdoc.org/faq.html#_how_is_server_url_generated
Edited by Anthony Ittiyera vazhappilly