Search
Plugins > HTTP-REST 2.2.2 > RESTHostManager > createRESTHostFromSwaggerSpecString

Method createRESTHostFromSwaggerSpecString(String hostName, String swaggerSpec, String host, String basePath, String preferredCommunicationProtocol, java.util.Map params)

Adds a new operation from string definition

Returns

RESTHost

Arguments

Name Type Description
hostName String The name of the new REST host
swaggerSpec String The URL of the Swagger spec
host String Host name specified by the user
basePath String user specified basepath
preferredCommunicationProtocol String Preferred protocol - HTTP or HTTPS
params java.util.Map