public class APICollectionApi extends Object
| Constructor and Description |
|---|
APICollectionApi() |
APICollectionApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
APIList |
apisGet(Integer limit,
Integer offset,
String query,
String ifNoneMatch)
Retrieve/Search APIs
This operation provides you a list of available APIs qualifying under a given search condition.
|
com.squareup.okhttp.Call |
apisGetAsync(Integer limit,
Integer offset,
String query,
String ifNoneMatch,
ApiCallback<APIList> callback)
Retrieve/Search APIs (asynchronously)
This operation provides you a list of available APIs qualifying under a given search condition.
|
com.squareup.okhttp.Call |
apisGetCall(Integer limit,
Integer offset,
String query,
String ifNoneMatch,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for apisGet
|
ApiResponse<APIList> |
apisGetWithHttpInfo(Integer limit,
Integer offset,
String query,
String ifNoneMatch)
Retrieve/Search APIs
This operation provides you a list of available APIs qualifying under a given search condition.
|
void |
apisHead(String query,
String ifNoneMatch)
Check given API attibute name is already exist
Using this operation, you can check a given API context is already used.
|
com.squareup.okhttp.Call |
apisHeadAsync(String query,
String ifNoneMatch,
ApiCallback<Void> callback)
Check given API attibute name is already exist (asynchronously)
Using this operation, you can check a given API context is already used.
|
com.squareup.okhttp.Call |
apisHeadCall(String query,
String ifNoneMatch,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for apisHead
|
ApiResponse<Void> |
apisHeadWithHttpInfo(String query,
String ifNoneMatch)
Check given API attibute name is already exist
Using this operation, you can check a given API context is already used.
|
API |
apisImportDefinitionPost(String type,
File file,
String url,
String additionalProperties,
String implementationType,
String ifMatch,
String ifUnmodifiedSince)
Import API Definition
This operation can be used to create api from api definition.
|
com.squareup.okhttp.Call |
apisImportDefinitionPostAsync(String type,
File file,
String url,
String additionalProperties,
String implementationType,
String ifMatch,
String ifUnmodifiedSince,
ApiCallback<API> callback)
Import API Definition (asynchronously)
This operation can be used to create api from api definition.
|
com.squareup.okhttp.Call |
apisImportDefinitionPostCall(String type,
File file,
String url,
String additionalProperties,
String implementationType,
String ifMatch,
String ifUnmodifiedSince,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for apisImportDefinitionPost
|
ApiResponse<API> |
apisImportDefinitionPostWithHttpInfo(String type,
File file,
String url,
String additionalProperties,
String implementationType,
String ifMatch,
String ifUnmodifiedSince)
Import API Definition
This operation can be used to create api from api definition.
|
API |
apisPost(API body)
Create a new API
This operation can be used to create a new API specifying the details of the API in the payload.
|
com.squareup.okhttp.Call |
apisPostAsync(API body,
ApiCallback<API> callback)
Create a new API (asynchronously)
This operation can be used to create a new API specifying the details of the API in the payload.
|
com.squareup.okhttp.Call |
apisPostCall(API body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for apisPost
|
ApiResponse<API> |
apisPostWithHttpInfo(API body)
Create a new API
This operation can be used to create a new API specifying the details of the API in the payload.
|
APIDefinitionValidationResponse |
apisValidateDefinitionPost(String type,
File file,
String url)
Validate API definition and retrieve a summary
This operation can be used to validate a swagger or WSDL definition and retrieve a summary.
|
com.squareup.okhttp.Call |
apisValidateDefinitionPostAsync(String type,
File file,
String url,
ApiCallback<APIDefinitionValidationResponse> callback)
Validate API definition and retrieve a summary (asynchronously)
This operation can be used to validate a swagger or WSDL definition and retrieve a summary.
|
com.squareup.okhttp.Call |
apisValidateDefinitionPostCall(String type,
File file,
String url,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for apisValidateDefinitionPost
|
ApiResponse<APIDefinitionValidationResponse> |
apisValidateDefinitionPostWithHttpInfo(String type,
File file,
String url)
Validate API definition and retrieve a summary
This operation can be used to validate a swagger or WSDL definition and retrieve a summary.
|
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
public APICollectionApi()
public APICollectionApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call apisGetCall(Integer limit, Integer offset, String query, String ifNoneMatch, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
limit - Maximum size of resource array to return. (optional, default to 25)offset - Starting point within the complete list of items qualified. (optional, default to 0)query - **Search condition**. You can search in attributes by using an **\"<attribute>:\"** modifier. Eg. \"provider:wso2\" will match an API if the provider of the API is exactly \"wso2\". Additionally you can use wildcards. Eg. \"provider:wso2*\" will match an API if the provider of the API starts with \"wso2\". Supported attribute modifiers are [**version, context, lifeCycleStatus, description, subcontext, doc, provider**] If no advanced attribute modifier has been specified, search will match the given query string against API Name. (optional)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic APIList apisGet(Integer limit, Integer offset, String query, String ifNoneMatch) throws ApiException
limit - Maximum size of resource array to return. (optional, default to 25)offset - Starting point within the complete list of items qualified. (optional, default to 0)query - **Search condition**. You can search in attributes by using an **\"<attribute>:\"** modifier. Eg. \"provider:wso2\" will match an API if the provider of the API is exactly \"wso2\". Additionally you can use wildcards. Eg. \"provider:wso2*\" will match an API if the provider of the API starts with \"wso2\". Supported attribute modifiers are [**version, context, lifeCycleStatus, description, subcontext, doc, provider**] If no advanced attribute modifier has been specified, search will match the given query string against API Name. (optional)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<APIList> apisGetWithHttpInfo(Integer limit, Integer offset, String query, String ifNoneMatch) throws ApiException
limit - Maximum size of resource array to return. (optional, default to 25)offset - Starting point within the complete list of items qualified. (optional, default to 0)query - **Search condition**. You can search in attributes by using an **\"<attribute>:\"** modifier. Eg. \"provider:wso2\" will match an API if the provider of the API is exactly \"wso2\". Additionally you can use wildcards. Eg. \"provider:wso2*\" will match an API if the provider of the API starts with \"wso2\". Supported attribute modifiers are [**version, context, lifeCycleStatus, description, subcontext, doc, provider**] If no advanced attribute modifier has been specified, search will match the given query string against API Name. (optional)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call apisGetAsync(Integer limit, Integer offset, String query, String ifNoneMatch, ApiCallback<APIList> callback) throws ApiException
limit - Maximum size of resource array to return. (optional, default to 25)offset - Starting point within the complete list of items qualified. (optional, default to 0)query - **Search condition**. You can search in attributes by using an **\"<attribute>:\"** modifier. Eg. \"provider:wso2\" will match an API if the provider of the API is exactly \"wso2\". Additionally you can use wildcards. Eg. \"provider:wso2*\" will match an API if the provider of the API starts with \"wso2\". Supported attribute modifiers are [**version, context, lifeCycleStatus, description, subcontext, doc, provider**] If no advanced attribute modifier has been specified, search will match the given query string against API Name. (optional)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (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 apisHeadCall(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. \"provider:wso2\" will match an API if the provider of the API is exactly \"wso2\". Additionally you can use wildcards. Eg. \"provider:wso2*\" will match an API if the provider of the API starts with \"wso2\". Supported attribute modifiers are [**version, context, lifeCycleStatus, description, subcontext, doc, provider**] If no advanced attribute modifier has been specified, search will match the given query string against API Name. (optional)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void apisHead(String query, String ifNoneMatch) throws ApiException
query - **Search condition**. You can search in attributes by using an **\"<attribute>:\"** modifier. Eg. \"provider:wso2\" will match an API if the provider of the API is exactly \"wso2\". Additionally you can use wildcards. Eg. \"provider:wso2*\" will match an API if the provider of the API starts with \"wso2\". Supported attribute modifiers are [**version, context, lifeCycleStatus, description, subcontext, doc, provider**] If no advanced attribute modifier has been specified, search will match the given query string against API Name. (optional)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> apisHeadWithHttpInfo(String query, String ifNoneMatch) throws ApiException
query - **Search condition**. You can search in attributes by using an **\"<attribute>:\"** modifier. Eg. \"provider:wso2\" will match an API if the provider of the API is exactly \"wso2\". Additionally you can use wildcards. Eg. \"provider:wso2*\" will match an API if the provider of the API starts with \"wso2\". Supported attribute modifiers are [**version, context, lifeCycleStatus, description, subcontext, doc, provider**] If no advanced attribute modifier has been specified, search will match the given query string against API Name. (optional)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call apisHeadAsync(String query, String ifNoneMatch, ApiCallback<Void> callback) throws ApiException
query - **Search condition**. You can search in attributes by using an **\"<attribute>:\"** modifier. Eg. \"provider:wso2\" will match an API if the provider of the API is exactly \"wso2\". Additionally you can use wildcards. Eg. \"provider:wso2*\" will match an API if the provider of the API starts with \"wso2\". Supported attribute modifiers are [**version, context, lifeCycleStatus, description, subcontext, doc, provider**] If no advanced attribute modifier has been specified, search will match the given query string against API Name. (optional)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (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 apisImportDefinitionPostCall(String type, File file, String url, String additionalProperties, String implementationType, String ifMatch, String ifUnmodifiedSince, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
type - Definition type to upload (optional, default to SWAGGER)file - Definition to uploadas a file (optional)url - Definition url (optional)additionalProperties - Additional attributes specified as a stringified JSON with API's schema (optional)implementationType - Currently this is only used when creating an API using a WSDL. If 'SOAP' is specified, the API will be created with only one resource 'POST /' which is to be used for SOAP operations. If 'HTTP_BINDING' is specified, the API will be created with resources using HTTP binding operations which are extracted from the WSDL. (optional, default to SOAP)ifMatch - Validator for conditional requests; based on ETag. (optional)ifUnmodifiedSince - Validator for conditional requests; based on Last Modified header. (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic API apisImportDefinitionPost(String type, File file, String url, String additionalProperties, String implementationType, String ifMatch, String ifUnmodifiedSince) throws ApiException
type - Definition type to upload (optional, default to SWAGGER)file - Definition to uploadas a file (optional)url - Definition url (optional)additionalProperties - Additional attributes specified as a stringified JSON with API's schema (optional)implementationType - Currently this is only used when creating an API using a WSDL. If 'SOAP' is specified, the API will be created with only one resource 'POST /' which is to be used for SOAP operations. If 'HTTP_BINDING' is specified, the API will be created with resources using HTTP binding operations which are extracted from the WSDL. (optional, default to SOAP)ifMatch - Validator for conditional requests; based on ETag. (optional)ifUnmodifiedSince - Validator for conditional requests; based on Last Modified header. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<API> apisImportDefinitionPostWithHttpInfo(String type, File file, String url, String additionalProperties, String implementationType, String ifMatch, String ifUnmodifiedSince) throws ApiException
type - Definition type to upload (optional, default to SWAGGER)file - Definition to uploadas a file (optional)url - Definition url (optional)additionalProperties - Additional attributes specified as a stringified JSON with API's schema (optional)implementationType - Currently this is only used when creating an API using a WSDL. If 'SOAP' is specified, the API will be created with only one resource 'POST /' which is to be used for SOAP operations. If 'HTTP_BINDING' is specified, the API will be created with resources using HTTP binding operations which are extracted from the WSDL. (optional, default to SOAP)ifMatch - Validator for conditional requests; based on ETag. (optional)ifUnmodifiedSince - Validator for conditional requests; based on Last Modified header. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call apisImportDefinitionPostAsync(String type, File file, String url, String additionalProperties, String implementationType, String ifMatch, String ifUnmodifiedSince, ApiCallback<API> callback) throws ApiException
type - Definition type to upload (optional, default to SWAGGER)file - Definition to uploadas a file (optional)url - Definition url (optional)additionalProperties - Additional attributes specified as a stringified JSON with API's schema (optional)implementationType - Currently this is only used when creating an API using a WSDL. If 'SOAP' is specified, the API will be created with only one resource 'POST /' which is to be used for SOAP operations. If 'HTTP_BINDING' is specified, the API will be created with resources using HTTP binding operations which are extracted from the WSDL. (optional, default to SOAP)ifMatch - Validator for conditional requests; based on ETag. (optional)ifUnmodifiedSince - Validator for conditional requests; based on Last Modified header. (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 apisPostCall(API body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
body - API object that needs to be added (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic API apisPost(API body) throws ApiException
body - API object that needs to be added (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<API> apisPostWithHttpInfo(API body) throws ApiException
body - API object that needs to be added (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call apisPostAsync(API body, ApiCallback<API> callback) throws ApiException
body - API object that needs to be added (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 apisValidateDefinitionPostCall(String type, File file, String url, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
type - Definition type to upload (required)file - Definition to upload as a file (optional)url - Definition url (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic APIDefinitionValidationResponse apisValidateDefinitionPost(String type, File file, String url) throws ApiException
type - Definition type to upload (required)file - Definition to upload as a file (optional)url - Definition url (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<APIDefinitionValidationResponse> apisValidateDefinitionPostWithHttpInfo(String type, File file, String url) throws ApiException
type - Definition type to upload (required)file - Definition to upload as a file (optional)url - Definition url (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call apisValidateDefinitionPostAsync(String type, File file, String url, ApiCallback<APIDefinitionValidationResponse> callback) throws ApiException
type - Definition type to upload (required)file - Definition to upload as a file (optional)url - Definition url (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 © 2018 WSO2. All rights reserved.