public class ApiIndividualApi extends Object
| Constructor and Description |
|---|
ApiIndividualApi() |
ApiIndividualApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
File |
exportApiGet(String name,
String version,
String providerName,
String format,
Boolean preserveStatus)
Export an API
This operation can be used to export the details of a particular API as a zip file.
|
com.squareup.okhttp.Call |
exportApiGetAsync(String name,
String version,
String providerName,
String format,
Boolean preserveStatus,
ApiCallback<File> callback)
Export an API (asynchronously)
This operation can be used to export the details of a particular API as a zip file.
|
com.squareup.okhttp.Call |
exportApiGetCall(String name,
String version,
String providerName,
String format,
Boolean preserveStatus,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for exportApiGet
|
ApiResponse<File> |
exportApiGetWithHttpInfo(String name,
String version,
String providerName,
String format,
Boolean preserveStatus)
Export an API
This operation can be used to export the details of a particular API as a zip file.
|
ApiClient |
getApiClient() |
void |
importApiPost(File file,
Boolean preserveProvider,
Boolean overwrite)
Import an API
This operation can be used to import an API.
|
com.squareup.okhttp.Call |
importApiPostAsync(File file,
Boolean preserveProvider,
Boolean overwrite,
ApiCallback<Void> callback)
Import an API (asynchronously)
This operation can be used to import an API.
|
com.squareup.okhttp.Call |
importApiPostCall(File file,
Boolean preserveProvider,
Boolean overwrite,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for importApiPost
|
ApiResponse<Void> |
importApiPostWithHttpInfo(File file,
Boolean preserveProvider,
Boolean overwrite)
Import an API
This operation can be used to import an API.
|
void |
setApiClient(ApiClient apiClient) |
public ApiIndividualApi()
public ApiIndividualApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call exportApiGetCall(String name, String version, String providerName, String format, Boolean preserveStatus, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
name - API Name (required)version - Version of the API (required)providerName - Provider name of the API (optional)format - Format of output documents. Can be YAML or JSON. (optional)preserveStatus - Preserve API Status on export (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic File exportApiGet(String name, String version, String providerName, String format, Boolean preserveStatus) throws ApiException
name - API Name (required)version - Version of the API (required)providerName - Provider name of the API (optional)format - Format of output documents. Can be YAML or JSON. (optional)preserveStatus - Preserve API Status on export (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<File> exportApiGetWithHttpInfo(String name, String version, String providerName, String format, Boolean preserveStatus) throws ApiException
name - API Name (required)version - Version of the API (required)providerName - Provider name of the API (optional)format - Format of output documents. Can be YAML or JSON. (optional)preserveStatus - Preserve API Status on export (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call exportApiGetAsync(String name, String version, String providerName, String format, Boolean preserveStatus, ApiCallback<File> callback) throws ApiException
name - API Name (required)version - Version of the API (required)providerName - Provider name of the API (optional)format - Format of output documents. Can be YAML or JSON. (optional)preserveStatus - Preserve API Status on export (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 importApiPostCall(File file, Boolean preserveProvider, Boolean overwrite, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
file - Zip archive consisting on exported api configuration (required)preserveProvider - Preserve Original Provider of the API. This is the user choice to keep or replace the API provider. (optional)overwrite - Whether to update the API or not. This is used when updating already existing APIs. (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void importApiPost(File file, Boolean preserveProvider, Boolean overwrite) throws ApiException
file - Zip archive consisting on exported api configuration (required)preserveProvider - Preserve Original Provider of the API. This is the user choice to keep or replace the API provider. (optional)overwrite - Whether to update the API or not. This is used when updating already existing APIs. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> importApiPostWithHttpInfo(File file, Boolean preserveProvider, Boolean overwrite) throws ApiException
file - Zip archive consisting on exported api configuration (required)preserveProvider - Preserve Original Provider of the API. This is the user choice to keep or replace the API provider. (optional)overwrite - Whether to update the API or not. This is used when updating already existing APIs. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call importApiPostAsync(File file, Boolean preserveProvider, Boolean overwrite, ApiCallback<Void> callback) throws ApiException
file - Zip archive consisting on exported api configuration (required)preserveProvider - Preserve Original Provider of the API. This is the user choice to keep or replace the API provider. (optional)overwrite - Whether to update the API or not. This is used when updating already existing APIs. (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.