Commit b32087bf authored by femiadeyemi's avatar femiadeyemi
Browse files

remove server property from the open-api configuration

Motivation:

The open-api for documenting cerebrum api allows setting the
server url property to the preferred url. In the initial state,
it was assumed that cerebrum will be served from localhost.
However, this is currently not the case, the application is
dockerised and can be served from different url than the assumed
one. Hence it is neccessary that we let the open-api generate
the server url.

Modification:

Remove server property from the open-api configuration.

Result:

The doc server url is now autogenrated.

Target: master
Review: https://gitlab.hzdr.de/hifis-technical-platform/helmholtz-cerebrum/-/merge_requests/35
parent e27d709d
......@@ -10,7 +10,6 @@ import io.swagger.v3.oas.annotations.security.OAuthFlow;
import io.swagger.v3.oas.annotations.security.OAuthFlows;
import io.swagger.v3.oas.annotations.security.OAuthScope;
import io.swagger.v3.oas.annotations.security.SecurityScheme;
import io.swagger.v3.oas.annotations.servers.Server;
@OpenAPIDefinition(
info = @Info(
......@@ -25,10 +24,7 @@ import io.swagger.v3.oas.annotations.servers.Server;
name = "GNU Affero General Public License",
url = "https://www.gnu.org/licenses/"
)
),
servers = {
@Server(url = "http://localhost:8090", description = "DEV Server")
}
)
)
@SecurityScheme(
name = "hdf-aai",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment