public class OpenAPIUtils
Type Params | Return Type | Name and description |
---|---|---|
|
public static void |
addMethodToPath(PathItem pathItem, RestMethod restMethod) |
|
public static boolean |
compareResourceWithPath(java.lang.String resourcePath, java.lang.String path) |
|
public static java.lang.String |
convertReadyApiParameterToOpenApiParameterType(RestParamProperty restParamProperty) |
|
public static void |
copyParametersToPath(PathItem pathItem, RestParamsPropertyHolder propertyHolder) |
|
public static void |
createMockResponses(MockOperation mockOperation, OpenAPI openAPI) |
|
public static java.lang.String |
extractMediaType(java.lang.String mediaType) |
|
public static Operation |
extractOperation(PathItem pathItem, HttpMethod method) |
|
public static java.lang.String |
extractStringFromExampleObject(java.lang.String contentType, java.lang.Object example) |
|
public static java.lang.String |
getOpenApiJson(OpenAPI openAPI) |
|
public static int |
getPathLength(java.lang.String path) |
|
public static java.lang.String |
getRangeForResponseCode(java.lang.String responseCode) Gets a appropriate range for response code |
|
public static void |
synchronizeResources(java.util.List<RestResource> restResources, OpenAPI openApi) |
|
public static Schema |
xmlSchemaTypesToJsonTypes(SchemaType schemaType) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), 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() |
Gets a appropriate range for response code
responseCode
- - HTTP response code