Copyright 2013-2017 SmartBear Software, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Modifiers | Name | Description |
---|---|---|
static boolean |
DEFAULT_FOR_CREATE_TEST_CASE |
|
static java.lang.String |
DEFAULT_MEDIA_TYPE |
Type Params | Return Type | Name and description |
---|---|---|
|
static SwaggerImporter |
createSwaggerImporter(java.lang.String url, WsdlProject project, java.lang.String defaultMediaType, boolean generateTestCase) Selects the appropriate SwaggerImporter for the specified URL. |
|
static SwaggerImporter |
createSwaggerImporter(java.lang.String url, WsdlProject project, java.lang.String defaultMediaType) |
|
static SwaggerImporter |
createSwaggerImporter(java.lang.String url, WsdlProject project) |
|
static SwaggerImporter |
createSwaggerImporter(java.lang.String url, WsdlProject project, boolean removedParameterForRefactoring) |
|
static Swagger |
getSwagger(java.lang.String swaggerAsString) |
|
static Swagger |
getSwagger(java.lang.String swaggerAsString, boolean resolve) |
|
static Swagger |
getSwagger(java.lang.String url, java.util.List<AuthorizationValue> auths, boolean resolve, boolean disableLogger) |
|
static Swagger |
getSwagger(java.lang.String url, java.util.List<AuthorizationValue> auths, boolean resolve) |
|
static SwaggerImporter |
importSwaggerFromUrl(WsdlProject project, java.lang.String finalExpUrl) |
|
static SwaggerImporter |
importSwaggerFromUrl(WsdlProject project, java.lang.String finalExpUrl, java.lang.String defaultMediaType) |
|
static boolean |
isOAS3Definition(java.lang.String oasVersion) |
|
static boolean |
isOpenApi(java.lang.String location) |
|
static boolean |
matchesPath(java.lang.String path, java.lang.String swaggerPath) |
|
static void |
setParameterType(RestParameter parameter, java.lang.String type) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Selects the appropriate SwaggerImporter for the specified URL. For .yaml urls the Swagger2Importer is returned. For .xml urls the Swagger1Importer is returned. For other urls the Swagger2Importer will be returned if the file is json and contains a root attribute named "swagger" or "swaggerVersion" with the value of 2.0.