public class DocumentCollectionApi extends Object
| Constructor and Description |
|---|
DocumentCollectionApi() |
DocumentCollectionApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
DocumentList |
apisApiIdDocumentsGet(String apiId,
Integer limit,
Integer offset,
String accept,
String ifNoneMatch)
Get a list of documents of an API
This operation can be used to retrive a list of documents belonging to an API by providing the id of the API.
|
com.squareup.okhttp.Call |
apisApiIdDocumentsGetAsync(String apiId,
Integer limit,
Integer offset,
String accept,
String ifNoneMatch,
ApiCallback<DocumentList> callback)
Get a list of documents of an API (asynchronously)
This operation can be used to retrive a list of documents belonging to an API by providing the id of the API.
|
ApiResponse<DocumentList> |
apisApiIdDocumentsGetWithHttpInfo(String apiId,
Integer limit,
Integer offset,
String accept,
String ifNoneMatch)
Get a list of documents of an API
This operation can be used to retrive a list of documents belonging to an API by providing the id of the API.
|
Document |
apisApiIdDocumentsPost(String apiId,
Document body,
String contentType)
Add a new document to an API
This operation can be used to add a new documentation to an API.
|
com.squareup.okhttp.Call |
apisApiIdDocumentsPostAsync(String apiId,
Document body,
String contentType,
ApiCallback<Document> callback)
Add a new document to an API (asynchronously)
This operation can be used to add a new documentation to an API.
|
ApiResponse<Document> |
apisApiIdDocumentsPostWithHttpInfo(String apiId,
Document body,
String contentType)
Add a new document to an API
This operation can be used to add a new documentation to an API.
|
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
public DocumentCollectionApi()
public DocumentCollectionApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public DocumentList apisApiIdDocumentsGet(String apiId, Integer limit, Integer offset, String accept, String ifNoneMatch) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API ID. Should be formatted as **provider-name-version**. (required)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)accept - Media types acceptable for the response. Default is application/json. (optional, default to application/json)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<DocumentList> apisApiIdDocumentsGetWithHttpInfo(String apiId, Integer limit, Integer offset, String accept, String ifNoneMatch) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API ID. Should be formatted as **provider-name-version**. (required)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)accept - Media types acceptable for the response. Default is application/json. (optional, default to application/json)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 apisApiIdDocumentsGetAsync(String apiId, Integer limit, Integer offset, String accept, String ifNoneMatch, ApiCallback<DocumentList> callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API ID. Should be formatted as **provider-name-version**. (required)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)accept - Media types acceptable for the response. Default is application/json. (optional, default to application/json)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 Document apisApiIdDocumentsPost(String apiId, Document body, String contentType) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API ID. Should be formatted as **provider-name-version**. (required)body - Document object that needs to be added (required)contentType - Media type of the entity in the body. Default is application/json. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Document> apisApiIdDocumentsPostWithHttpInfo(String apiId, Document body, String contentType) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API ID. Should be formatted as **provider-name-version**. (required)body - Document object that needs to be added (required)contentType - Media type of the entity in the body. Default is application/json. (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call apisApiIdDocumentsPostAsync(String apiId, Document body, String contentType, ApiCallback<Document> callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. The combination of the provider of the API, name of the API and the version is also accepted as a valid API ID. Should be formatted as **provider-name-version**. (required)body - Document object that needs to be added (required)contentType - Media type of the entity in the body. Default is application/json. (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 objectCopyright © 2017 WSO2. All rights reserved.