public class ValidationApi extends Object
| Constructor and Description |
|---|
ValidationApi() |
ValidationApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
GraphQLValidationResponseDTO |
apisValidateGraphqlSchemaPost(File file)
Validate GraphQL API definition and retrieve a summary
This operation can be used to validate a graphQL definition and retrieve a summary.
|
com.squareup.okhttp.Call |
apisValidateGraphqlSchemaPostAsync(File file,
ApiCallback<GraphQLValidationResponseDTO> callback)
Validate GraphQL API definition and retrieve a summary (asynchronously)
This operation can be used to validate a graphQL definition and retrieve a summary.
|
com.squareup.okhttp.Call |
apisValidateGraphqlSchemaPostCall(File file,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for apisValidateGraphqlSchemaPost
|
ApiResponse<GraphQLValidationResponseDTO> |
apisValidateGraphqlSchemaPostWithHttpInfo(File file)
Validate GraphQL API definition and retrieve a summary
This operation can be used to validate a graphQL definition and retrieve a summary.
|
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
void |
validateAPI(String query,
String ifNoneMatch)
Check given API attibute name is already exist.
|
com.squareup.okhttp.Call |
validateAPIAsync(String query,
String ifNoneMatch,
ApiCallback<Void> callback)
Check given API attibute name is already exist.
|
com.squareup.okhttp.Call |
validateAPICall(String query,
String ifNoneMatch,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for validateAPI
|
ApiResponse<Void> |
validateAPIWithHttpInfo(String query,
String ifNoneMatch)
Check given API attibute name is already exist.
|
ApiEndpointValidationResponseDTO |
validateEndpoint(String endpointUrl,
String apiId)
Check whether given endpoint url is valid
Using this operation, it is possible check whether the given API endpoint url is a valid url
|
com.squareup.okhttp.Call |
validateEndpointAsync(String endpointUrl,
String apiId,
ApiCallback<ApiEndpointValidationResponseDTO> callback)
Check whether given endpoint url is valid (asynchronously)
Using this operation, it is possible check whether the given API endpoint url is a valid url
|
com.squareup.okhttp.Call |
validateEndpointCall(String endpointUrl,
String apiId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for validateEndpoint
|
ApiResponse<ApiEndpointValidationResponseDTO> |
validateEndpointWithHttpInfo(String endpointUrl,
String apiId)
Check whether given endpoint url is valid
Using this operation, it is possible check whether the given API endpoint url is a valid url
|
OpenAPIDefinitionValidationResponseDTO |
validateOpenAPIDefinition(String url,
File file,
Boolean returnContent)
Validate an OpenAPI Definition
This operation can be used to validate an OpenAPI definition and retrieve a summary.
|
com.squareup.okhttp.Call |
validateOpenAPIDefinitionAsync(String url,
File file,
Boolean returnContent,
ApiCallback<OpenAPIDefinitionValidationResponseDTO> callback)
Validate an OpenAPI Definition (asynchronously)
This operation can be used to validate an OpenAPI definition and retrieve a summary.
|
com.squareup.okhttp.Call |
validateOpenAPIDefinitionCall(String url,
File file,
Boolean returnContent,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for validateOpenAPIDefinition
|
ApiResponse<OpenAPIDefinitionValidationResponseDTO> |
validateOpenAPIDefinitionWithHttpInfo(String url,
File file,
Boolean returnContent)
Validate an OpenAPI Definition
This operation can be used to validate an OpenAPI definition and retrieve a summary.
|
WSDLValidationResponseDTO |
validateWSDLDefinition(String url,
File file)
Validate a WSDL Definition
This operation can be used to validate a WSDL definition and retrieve a summary.
|
com.squareup.okhttp.Call |
validateWSDLDefinitionAsync(String url,
File file,
ApiCallback<WSDLValidationResponseDTO> callback)
Validate a WSDL Definition (asynchronously)
This operation can be used to validate a WSDL definition and retrieve a summary.
|
com.squareup.okhttp.Call |
validateWSDLDefinitionCall(String url,
File file,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for validateWSDLDefinition
|
ApiResponse<WSDLValidationResponseDTO> |
validateWSDLDefinitionWithHttpInfo(String url,
File file)
Validate a WSDL Definition
This operation can be used to validate a WSDL definition and retrieve a summary.
|
public ValidationApi()
public ValidationApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call apisValidateGraphqlSchemaPostCall(File file, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
file - Definition to upload as a file (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic GraphQLValidationResponseDTO apisValidateGraphqlSchemaPost(File file) throws ApiException
file - Definition to upload as a file (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<GraphQLValidationResponseDTO> apisValidateGraphqlSchemaPostWithHttpInfo(File file) throws ApiException
file - Definition to upload as a file (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call apisValidateGraphqlSchemaPostAsync(File file, ApiCallback<GraphQLValidationResponseDTO> callback) throws ApiException
file - Definition to upload as a file (required)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call validateAPICall(String query, String ifNoneMatch, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
query - **Search condition**. You can search in attributes by using an **\"<attribute>:\"** modifier. Eg. \"name:wso2\" will match an API if the provider of the API is exactly \"wso2\". Supported attribute modifiers are [** version, context, name **] If no advanced attribute modifier has been specified, search will match the given query string against API Name. (required)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void validateAPI(String query, String ifNoneMatch) throws ApiException
query - **Search condition**. You can search in attributes by using an **\"<attribute>:\"** modifier. Eg. \"name:wso2\" will match an API if the provider of the API is exactly \"wso2\". Supported attribute modifiers are [** version, context, name **] If no advanced attribute modifier has been specified, search will match the given query string against API Name. (required)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> validateAPIWithHttpInfo(String query, String ifNoneMatch) throws ApiException
query - **Search condition**. You can search in attributes by using an **\"<attribute>:\"** modifier. Eg. \"name:wso2\" will match an API if the provider of the API is exactly \"wso2\". Supported attribute modifiers are [** version, context, name **] If no advanced attribute modifier has been specified, search will match the given query string against API Name. (required)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call validateAPIAsync(String query, String ifNoneMatch, ApiCallback<Void> callback) throws ApiException
query - **Search condition**. You can search in attributes by using an **\"<attribute>:\"** modifier. Eg. \"name:wso2\" will match an API if the provider of the API is exactly \"wso2\". Supported attribute modifiers are [** version, context, name **] If no advanced attribute modifier has been specified, search will match the given query string against API Name. (required)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call validateEndpointCall(String endpointUrl, String apiId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
endpointUrl - API endpoint url (required)apiId - (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic ApiEndpointValidationResponseDTO validateEndpoint(String endpointUrl, String apiId) throws ApiException
endpointUrl - API endpoint url (required)apiId - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiEndpointValidationResponseDTO> validateEndpointWithHttpInfo(String endpointUrl, String apiId) throws ApiException
endpointUrl - API endpoint url (required)apiId - (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call validateEndpointAsync(String endpointUrl, String apiId, ApiCallback<ApiEndpointValidationResponseDTO> callback) throws ApiException
endpointUrl - API endpoint url (required)apiId - (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call validateOpenAPIDefinitionCall(String url, File file, Boolean returnContent, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
url - OpenAPI definition url (optional)file - OpenAPI definition as a file (optional)returnContent - Specify whether to return the full content of the OpenAPI definition in the response. This is only applicable when using url based validation (optional, default to false)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic OpenAPIDefinitionValidationResponseDTO validateOpenAPIDefinition(String url, File file, Boolean returnContent) throws ApiException
url - OpenAPI definition url (optional)file - OpenAPI definition as a file (optional)returnContent - Specify whether to return the full content of the OpenAPI definition in the response. This is only applicable when using url based validation (optional, default to false)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<OpenAPIDefinitionValidationResponseDTO> validateOpenAPIDefinitionWithHttpInfo(String url, File file, Boolean returnContent) throws ApiException
url - OpenAPI definition url (optional)file - OpenAPI definition as a file (optional)returnContent - Specify whether to return the full content of the OpenAPI definition in the response. This is only applicable when using url based validation (optional, default to false)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call validateOpenAPIDefinitionAsync(String url, File file, Boolean returnContent, ApiCallback<OpenAPIDefinitionValidationResponseDTO> callback) throws ApiException
url - OpenAPI definition url (optional)file - OpenAPI definition as a file (optional)returnContent - Specify whether to return the full content of the OpenAPI definition in the response. This is only applicable when using url based validation (optional, default to false)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call validateWSDLDefinitionCall(String url, File file, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
url - Definition url (optional)file - Definition to upload as a file (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic WSDLValidationResponseDTO validateWSDLDefinition(String url, File file) throws ApiException
url - Definition url (optional)file - Definition to upload as a file (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<WSDLValidationResponseDTO> validateWSDLDefinitionWithHttpInfo(String url, File file) throws ApiException
url - Definition url (optional)file - Definition to upload as a file (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call validateWSDLDefinitionAsync(String url, File file, ApiCallback<WSDLValidationResponseDTO> callback) throws ApiException
url - Definition url (optional)file - Definition to upload as a file (optional)callback - The callback to be executed when the API call finishesApiException - If fail to process the API call, e.g. serializing the request body objectCopyright © 2020 WSO2 Inc. All rights reserved.