Class SwaggerConstants
- java.lang.Object
-
- org.wso2.carbon.mediation.commons.rest.api.swagger.SwaggerConstants
-
public class SwaggerConstants extends Object
Constants used in Swagger definition generation.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONSUMESSwagger element "consumes" in http://swagger.io/specification/static StringCONTENT_TYPE_JSONContent type "application/json" string for JSON messagesstatic StringCONTENT_TYPE_XMLContent type "application/xml" string for JSON messagesstatic StringCONTENT_TYPE_YAMLContent type "application/x-yaml" string for YAML messagesstatic String[]DEFAULT_CONSUMESDefault consume mime typesstatic StringDEFAULT_ENCODINGDefault encoding for response messages generated from swagger generationstatic StringDEFAULT_HOSTDefault host for Swagger APIstatic intDEFAULT_PORTDefault port for Swagger APIstatic String[]DEFAULT_PRODUCESDefault produce mime typesstatic StringDEFAULT_SWAGGER_REGISTRY_PATHPath to save the swagger documentstatic intHTTP_OKSuccess response code for swagger responsesstatic StringOPERATION_HTTP_DELETEstatic StringOPERATION_HTTP_GETSwagger operationsstatic StringOPERATION_HTTP_HEADstatic StringOPERATION_HTTP_OPTIONSstatic StringOPERATION_HTTP_PATCHstatic StringOPERATION_HTTP_POSTstatic StringOPERATION_HTTP_PUTstatic StringPRODUCESSwagger element "produces" in http://swagger.io/specification/static StringSWAGGER_JSON_FILE_PATHstatic StringWSDL_EPR_PREFIXWSDL Prefix defined in transport listener in axis2.xml
-
Constructor Summary
Constructors Constructor Description SwaggerConstants()
-
-
-
Field Detail
-
CONTENT_TYPE_JSON
public static final String CONTENT_TYPE_JSON
Content type "application/json" string for JSON messages- See Also:
- Constant Field Values
-
CONTENT_TYPE_XML
public static final String CONTENT_TYPE_XML
Content type "application/xml" string for JSON messages- See Also:
- Constant Field Values
-
CONTENT_TYPE_YAML
public static final String CONTENT_TYPE_YAML
Content type "application/x-yaml" string for YAML messages- See Also:
- Constant Field Values
-
DEFAULT_ENCODING
public static final String DEFAULT_ENCODING
Default encoding for response messages generated from swagger generation- See Also:
- Constant Field Values
-
HTTP_OK
public static final int HTTP_OK
Success response code for swagger responses- See Also:
- Constant Field Values
-
CONSUMES
public static String CONSUMES
Swagger element "consumes" in http://swagger.io/specification/
-
PRODUCES
public static String PRODUCES
Swagger element "produces" in http://swagger.io/specification/
-
DEFAULT_SWAGGER_REGISTRY_PATH
public static String DEFAULT_SWAGGER_REGISTRY_PATH
Path to save the swagger document
-
SWAGGER_JSON_FILE_PATH
public static final String SWAGGER_JSON_FILE_PATH
- See Also:
- Constant Field Values
-
WSDL_EPR_PREFIX
public static String WSDL_EPR_PREFIX
WSDL Prefix defined in transport listener in axis2.xml
-
OPERATION_HTTP_GET
public static final String OPERATION_HTTP_GET
Swagger operations- See Also:
- Constant Field Values
-
OPERATION_HTTP_POST
public static final String OPERATION_HTTP_POST
- See Also:
- Constant Field Values
-
OPERATION_HTTP_PUT
public static final String OPERATION_HTTP_PUT
- See Also:
- Constant Field Values
-
OPERATION_HTTP_PATCH
public static final String OPERATION_HTTP_PATCH
- See Also:
- Constant Field Values
-
OPERATION_HTTP_DELETE
public static final String OPERATION_HTTP_DELETE
- See Also:
- Constant Field Values
-
OPERATION_HTTP_OPTIONS
public static final String OPERATION_HTTP_OPTIONS
- See Also:
- Constant Field Values
-
OPERATION_HTTP_HEAD
public static final String OPERATION_HTTP_HEAD
- See Also:
- Constant Field Values
-
DEFAULT_CONSUMES
public static String[] DEFAULT_CONSUMES
Default consume mime types
-
DEFAULT_PRODUCES
public static String[] DEFAULT_PRODUCES
Default produce mime types
-
DEFAULT_HOST
public static String DEFAULT_HOST
Default host for Swagger API
-
DEFAULT_PORT
public static int DEFAULT_PORT
Default port for Swagger API
-
-