Class SwaggerConstants
java.lang.Object
org.wso2.carbon.mediation.commons.rest.api.swagger.SwaggerConstants
Constants used in Swagger definition generation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic StringSwagger element "consumes" in http://swagger.io/specification/static final StringContent type "application/json" string for JSON messagesstatic final StringContent type "application/xml" string for JSON messagesstatic final StringContent type "application/x-yaml" string for YAML messagesstatic String[]Default consume mime typesstatic final StringDefault encoding for response messages generated from swagger generationstatic StringDefault host for Swagger APIstatic intDefault port for Swagger APIstatic String[]Default produce mime typesstatic StringPath to save the swagger documentstatic final intSuccess response code for swagger responsesstatic final Stringstatic final StringSwagger operationsstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic StringSwagger element "produces" in http://swagger.io/specification/static final Stringstatic StringWSDL Prefix defined in transport listener in axis2.xml -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CONTENT_TYPE_JSON
Content type "application/json" string for JSON messages- See Also:
-
CONTENT_TYPE_XML
Content type "application/xml" string for JSON messages- See Also:
-
CONTENT_TYPE_YAML
Content type "application/x-yaml" string for YAML messages- See Also:
-
DEFAULT_ENCODING
Default encoding for response messages generated from swagger generation- See Also:
-
HTTP_OK
public static final int HTTP_OKSuccess response code for swagger responses- See Also:
-
CONSUMES
Swagger element "consumes" in http://swagger.io/specification/ -
PRODUCES
Swagger element "produces" in http://swagger.io/specification/ -
DEFAULT_SWAGGER_REGISTRY_PATH
Path to save the swagger document -
SWAGGER_JSON_FILE_PATH
- See Also:
-
WSDL_EPR_PREFIX
WSDL Prefix defined in transport listener in axis2.xml -
OPERATION_HTTP_GET
Swagger operations- See Also:
-
OPERATION_HTTP_POST
- See Also:
-
OPERATION_HTTP_PUT
- See Also:
-
OPERATION_HTTP_PATCH
- See Also:
-
OPERATION_HTTP_DELETE
- See Also:
-
OPERATION_HTTP_OPTIONS
- See Also:
-
OPERATION_HTTP_HEAD
- See Also:
-
DEFAULT_CONSUMES
Default consume mime types -
DEFAULT_PRODUCES
Default produce mime types -
DEFAULT_HOST
Default host for Swagger API -
DEFAULT_PORT
public static int DEFAULT_PORTDefault port for Swagger API
-
-
Constructor Details
-
SwaggerConstants
public SwaggerConstants()
-