Search
Plugins > HTTP-REST 2.3.0 > RESTHostManager > getSwaggerServiceUrl

Method getSwaggerServiceUrl(String swaggerSpec, String host, String basePath, String preferredCommunicationProtocol)

Get the Swagger service URL from Swagger spec and the preferred protocol

Returns

String

Arguments

Name Type Description
swaggerSpec String Swagger spec as a string
host String Host name specified by the user
basePath String Base path specified by the user
preferredCommunicationProtocol String Preferred communcation protocol - HTTP or HTTPS