public class ApiDocumentsApi extends Object
| Constructor and Description |
|---|
ApiDocumentsApi() |
ApiDocumentsApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
DocumentDTO |
addAPIDocument(String apiId,
DocumentDTO documentDTO,
String ifMatch)
Add a New Document to an API
This operation can be used to add a new documentation to an API.
|
okhttp3.Call |
addAPIDocumentAsync(String apiId,
DocumentDTO documentDTO,
String ifMatch,
ApiCallback<DocumentDTO> _callback)
Add a New Document to an API (asynchronously)
This operation can be used to add a new documentation to an API.
|
okhttp3.Call |
addAPIDocumentCall(String apiId,
DocumentDTO documentDTO,
String ifMatch,
ApiCallback _callback)
Build call for addAPIDocument
|
DocumentDTO |
addAPIDocumentContent(String apiId,
String documentId,
String ifMatch,
File file,
String inlineContent)
Upload the Content of an API Document
Thid operation can be used to upload a file or add inline content to an API document.
|
okhttp3.Call |
addAPIDocumentContentAsync(String apiId,
String documentId,
String ifMatch,
File file,
String inlineContent,
ApiCallback<DocumentDTO> _callback)
Upload the Content of an API Document (asynchronously)
Thid operation can be used to upload a file or add inline content to an API document.
|
okhttp3.Call |
addAPIDocumentContentCall(String apiId,
String documentId,
String ifMatch,
File file,
String inlineContent,
ApiCallback _callback)
Build call for addAPIDocumentContent
|
ApiResponse<DocumentDTO> |
addAPIDocumentContentWithHttpInfo(String apiId,
String documentId,
String ifMatch,
File file,
String inlineContent)
Upload the Content of an API Document
Thid operation can be used to upload a file or add inline content to an API document.
|
ApiResponse<DocumentDTO> |
addAPIDocumentWithHttpInfo(String apiId,
DocumentDTO documentDTO,
String ifMatch)
Add a New Document to an API
This operation can be used to add a new documentation to an API.
|
void |
deleteAPIDocument(String apiId,
String documentId,
String ifMatch)
Delete a Document of an API
This operation can be used to delete a document associated with an API.
|
okhttp3.Call |
deleteAPIDocumentAsync(String apiId,
String documentId,
String ifMatch,
ApiCallback<Void> _callback)
Delete a Document of an API (asynchronously)
This operation can be used to delete a document associated with an API.
|
okhttp3.Call |
deleteAPIDocumentCall(String apiId,
String documentId,
String ifMatch,
ApiCallback _callback)
Build call for deleteAPIDocument
|
ApiResponse<Void> |
deleteAPIDocumentWithHttpInfo(String apiId,
String documentId,
String ifMatch)
Delete a Document of an API
This operation can be used to delete a document associated with an API.
|
ApiClient |
getApiClient() |
DocumentDTO |
getAPIDocumentByDocumentId(String apiId,
String documentId,
String ifNoneMatch)
Get a Document of an API
This operation can be used to retrieve a particular document's metadata associated with an API.
|
okhttp3.Call |
getAPIDocumentByDocumentIdAsync(String apiId,
String documentId,
String ifNoneMatch,
ApiCallback<DocumentDTO> _callback)
Get a Document of an API (asynchronously)
This operation can be used to retrieve a particular document's metadata associated with an API.
|
okhttp3.Call |
getAPIDocumentByDocumentIdCall(String apiId,
String documentId,
String ifNoneMatch,
ApiCallback _callback)
Build call for getAPIDocumentByDocumentId
|
ApiResponse<DocumentDTO> |
getAPIDocumentByDocumentIdWithHttpInfo(String apiId,
String documentId,
String ifNoneMatch)
Get a Document of an API
This operation can be used to retrieve a particular document's metadata associated with an API.
|
String |
getAPIDocumentContentByDocumentId(String apiId,
String documentId,
String ifNoneMatch)
Get the Content of an API Document
This operation can be used to retrive the content of an API's document.
|
okhttp3.Call |
getAPIDocumentContentByDocumentIdAsync(String apiId,
String documentId,
String ifNoneMatch,
ApiCallback<String> _callback)
Get the Content of an API Document (asynchronously)
This operation can be used to retrive the content of an API's document.
|
okhttp3.Call |
getAPIDocumentContentByDocumentIdCall(String apiId,
String documentId,
String ifNoneMatch,
ApiCallback _callback)
Build call for getAPIDocumentContentByDocumentId
|
ApiResponse<String> |
getAPIDocumentContentByDocumentIdWithHttpInfo(String apiId,
String documentId,
String ifNoneMatch)
Get the Content of an API Document
This operation can be used to retrive the content of an API's document.
|
DocumentListDTO |
getAPIDocuments(String apiId,
Integer limit,
Integer offset,
String ifNoneMatch)
Get a List of Documents of an API
This operation can be used to retrieve a list of documents belonging to an API by providing the id of the API.
|
okhttp3.Call |
getAPIDocumentsAsync(String apiId,
Integer limit,
Integer offset,
String ifNoneMatch,
ApiCallback<DocumentListDTO> _callback)
Get a List of Documents of an API (asynchronously)
This operation can be used to retrieve a list of documents belonging to an API by providing the id of the API.
|
okhttp3.Call |
getAPIDocumentsCall(String apiId,
Integer limit,
Integer offset,
String ifNoneMatch,
ApiCallback _callback)
Build call for getAPIDocuments
|
ApiResponse<DocumentListDTO> |
getAPIDocumentsWithHttpInfo(String apiId,
Integer limit,
Integer offset,
String ifNoneMatch)
Get a List of Documents of an API
This operation can be used to retrieve a list of documents belonging to an API by providing the id of the API.
|
void |
setApiClient(ApiClient apiClient) |
DocumentDTO |
updateAPIDocument(String apiId,
String documentId,
DocumentDTO documentDTO,
String ifMatch)
Update a Document of an API
This operation can be used to update metadata of an API's document.
|
okhttp3.Call |
updateAPIDocumentAsync(String apiId,
String documentId,
DocumentDTO documentDTO,
String ifMatch,
ApiCallback<DocumentDTO> _callback)
Update a Document of an API (asynchronously)
This operation can be used to update metadata of an API's document.
|
okhttp3.Call |
updateAPIDocumentCall(String apiId,
String documentId,
DocumentDTO documentDTO,
String ifMatch,
ApiCallback _callback)
Build call for updateAPIDocument
|
ApiResponse<DocumentDTO> |
updateAPIDocumentWithHttpInfo(String apiId,
String documentId,
DocumentDTO documentDTO,
String ifMatch)
Update a Document of an API
This operation can be used to update metadata of an API's document.
|
void |
validateDocument(String apiId,
String name,
String ifMatch)
Check Whether a Document with the Provided Name Exist
This operation can be used to verify the document name exists or not.
|
okhttp3.Call |
validateDocumentAsync(String apiId,
String name,
String ifMatch,
ApiCallback<Void> _callback)
Check Whether a Document with the Provided Name Exist (asynchronously)
This operation can be used to verify the document name exists or not.
|
okhttp3.Call |
validateDocumentCall(String apiId,
String name,
String ifMatch,
ApiCallback _callback)
Build call for validateDocument
|
ApiResponse<Void> |
validateDocumentWithHttpInfo(String apiId,
String name,
String ifMatch)
Check Whether a Document with the Provided Name Exist
This operation can be used to verify the document name exists or not.
|
public ApiDocumentsApi()
public ApiDocumentsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call addAPIDocumentCall(String apiId, DocumentDTO documentDTO, String ifMatch, ApiCallback _callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)documentDTO - Document object that needs to be added (required)ifMatch - Validator for conditional requests; based on ETag. (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic DocumentDTO addAPIDocument(String apiId, DocumentDTO documentDTO, String ifMatch) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)documentDTO - Document object that needs to be added (required)ifMatch - Validator for conditional requests; based on ETag. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<DocumentDTO> addAPIDocumentWithHttpInfo(String apiId, DocumentDTO documentDTO, String ifMatch) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)documentDTO - Document object that needs to be added (required)ifMatch - Validator for conditional requests; based on ETag. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call addAPIDocumentAsync(String apiId, DocumentDTO documentDTO, String ifMatch, ApiCallback<DocumentDTO> _callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)documentDTO - Document object that needs to be added (required)ifMatch - Validator for conditional requests; based on ETag. (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 okhttp3.Call addAPIDocumentContentCall(String apiId, String documentId, String ifMatch, File file, String inlineContent, ApiCallback _callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)documentId - Document Identifier (required)ifMatch - Validator for conditional requests; based on ETag. (optional)file - Document to upload (optional)inlineContent - Inline content of the document (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic DocumentDTO addAPIDocumentContent(String apiId, String documentId, String ifMatch, File file, String inlineContent) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)documentId - Document Identifier (required)ifMatch - Validator for conditional requests; based on ETag. (optional)file - Document to upload (optional)inlineContent - Inline content of the document (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<DocumentDTO> addAPIDocumentContentWithHttpInfo(String apiId, String documentId, String ifMatch, File file, String inlineContent) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)documentId - Document Identifier (required)ifMatch - Validator for conditional requests; based on ETag. (optional)file - Document to upload (optional)inlineContent - Inline content of the document (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call addAPIDocumentContentAsync(String apiId, String documentId, String ifMatch, File file, String inlineContent, ApiCallback<DocumentDTO> _callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)documentId - Document Identifier (required)ifMatch - Validator for conditional requests; based on ETag. (optional)file - Document to upload (optional)inlineContent - Inline content of the document (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 okhttp3.Call deleteAPIDocumentCall(String apiId, String documentId, String ifMatch, ApiCallback _callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)documentId - Document Identifier (required)ifMatch - Validator for conditional requests; based on ETag. (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic void deleteAPIDocument(String apiId, String documentId, String ifMatch) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)documentId - Document Identifier (required)ifMatch - Validator for conditional requests; based on ETag. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> deleteAPIDocumentWithHttpInfo(String apiId, String documentId, String ifMatch) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)documentId - Document Identifier (required)ifMatch - Validator for conditional requests; based on ETag. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call deleteAPIDocumentAsync(String apiId, String documentId, String ifMatch, ApiCallback<Void> _callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)documentId - Document Identifier (required)ifMatch - Validator for conditional requests; based on ETag. (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 okhttp3.Call getAPIDocumentByDocumentIdCall(String apiId, String documentId, String ifNoneMatch, ApiCallback _callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)documentId - Document Identifier (required)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic DocumentDTO getAPIDocumentByDocumentId(String apiId, String documentId, String ifNoneMatch) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)documentId - Document Identifier (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<DocumentDTO> getAPIDocumentByDocumentIdWithHttpInfo(String apiId, String documentId, String ifNoneMatch) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)documentId - Document Identifier (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 okhttp3.Call getAPIDocumentByDocumentIdAsync(String apiId, String documentId, String ifNoneMatch, ApiCallback<DocumentDTO> _callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)documentId - Document Identifier (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 okhttp3.Call getAPIDocumentContentByDocumentIdCall(String apiId, String documentId, String ifNoneMatch, ApiCallback _callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)documentId - Document Identifier (required)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic String getAPIDocumentContentByDocumentId(String apiId, String documentId, String ifNoneMatch) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)documentId - Document Identifier (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<String> getAPIDocumentContentByDocumentIdWithHttpInfo(String apiId, String documentId, String ifNoneMatch) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)documentId - Document Identifier (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 okhttp3.Call getAPIDocumentContentByDocumentIdAsync(String apiId, String documentId, String ifNoneMatch, ApiCallback<String> _callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)documentId - Document Identifier (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 okhttp3.Call getAPIDocumentsCall(String apiId, Integer limit, Integer offset, String ifNoneMatch, ApiCallback _callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (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)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource. (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic DocumentListDTO getAPIDocuments(String apiId, Integer limit, Integer offset, String ifNoneMatch) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (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)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<DocumentListDTO> getAPIDocumentsWithHttpInfo(String apiId, Integer limit, Integer offset, String ifNoneMatch) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (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)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 okhttp3.Call getAPIDocumentsAsync(String apiId, Integer limit, Integer offset, String ifNoneMatch, ApiCallback<DocumentListDTO> _callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (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)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 okhttp3.Call updateAPIDocumentCall(String apiId, String documentId, DocumentDTO documentDTO, String ifMatch, ApiCallback _callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)documentId - Document Identifier (required)documentDTO - Document object that needs to be added (required)ifMatch - Validator for conditional requests; based on ETag. (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic DocumentDTO updateAPIDocument(String apiId, String documentId, DocumentDTO documentDTO, String ifMatch) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)documentId - Document Identifier (required)documentDTO - Document object that needs to be added (required)ifMatch - Validator for conditional requests; based on ETag. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<DocumentDTO> updateAPIDocumentWithHttpInfo(String apiId, String documentId, DocumentDTO documentDTO, String ifMatch) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)documentId - Document Identifier (required)documentDTO - Document object that needs to be added (required)ifMatch - Validator for conditional requests; based on ETag. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call updateAPIDocumentAsync(String apiId, String documentId, DocumentDTO documentDTO, String ifMatch, ApiCallback<DocumentDTO> _callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)documentId - Document Identifier (required)documentDTO - Document object that needs to be added (required)ifMatch - Validator for conditional requests; based on ETag. (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 okhttp3.Call validateDocumentCall(String apiId, String name, String ifMatch, ApiCallback _callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)name - The name of the document which needs to be checked for the existance. (required)ifMatch - Validator for conditional requests; based on ETag. (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic void validateDocument(String apiId, String name, String ifMatch) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)name - The name of the document which needs to be checked for the existance. (required)ifMatch - Validator for conditional requests; based on ETag. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<Void> validateDocumentWithHttpInfo(String apiId, String name, String ifMatch) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)name - The name of the document which needs to be checked for the existance. (required)ifMatch - Validator for conditional requests; based on ETag. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call validateDocumentAsync(String apiId, String name, String ifMatch, ApiCallback<Void> _callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)name - The name of the document which needs to be checked for the existance. (required)ifMatch - Validator for conditional requests; based on ETag. (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 © 2021 WSO2 Inc. All rights reserved.