public class CommentsApi extends Object
| Constructor and Description |
|---|
CommentsApi() |
CommentsApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
CommentDTO |
addCommentToAPI(String apiId,
CommentDTO body)
Add an API comment
|
com.squareup.okhttp.Call |
addCommentToAPIAsync(String apiId,
CommentDTO body,
ApiCallback<CommentDTO> callback)
Add an API comment (asynchronously)
|
com.squareup.okhttp.Call |
addCommentToAPICall(String apiId,
CommentDTO body,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for addCommentToAPI
|
ApiResponse<CommentDTO> |
addCommentToAPIWithHttpInfo(String apiId,
CommentDTO body)
Add an API comment
|
void |
deleteComment(String commentId,
String apiId,
String ifMatch)
Delete an API comment
Remove a Comment
|
com.squareup.okhttp.Call |
deleteCommentAsync(String commentId,
String apiId,
String ifMatch,
ApiCallback<Void> callback)
Delete an API comment (asynchronously)
Remove a Comment
|
com.squareup.okhttp.Call |
deleteCommentCall(String commentId,
String apiId,
String ifMatch,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for deleteComment
|
ApiResponse<Void> |
deleteCommentWithHttpInfo(String commentId,
String apiId,
String ifMatch)
Delete an API comment
Remove a Comment
|
CommentListDTO |
getAllCommentsOfAPI(String apiId,
String xWSO2Tenant,
Integer limit,
Integer offset)
Retrieve API comments
Get a list of Comments that are already added to APIs
|
com.squareup.okhttp.Call |
getAllCommentsOfAPIAsync(String apiId,
String xWSO2Tenant,
Integer limit,
Integer offset,
ApiCallback<CommentListDTO> callback)
Retrieve API comments (asynchronously)
Get a list of Comments that are already added to APIs
|
com.squareup.okhttp.Call |
getAllCommentsOfAPICall(String apiId,
String xWSO2Tenant,
Integer limit,
Integer offset,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getAllCommentsOfAPI
|
ApiResponse<CommentListDTO> |
getAllCommentsOfAPIWithHttpInfo(String apiId,
String xWSO2Tenant,
Integer limit,
Integer offset)
Retrieve API comments
Get a list of Comments that are already added to APIs
|
ApiClient |
getApiClient() |
CommentDTO |
getCommentOfAPI(String commentId,
String apiId,
String xWSO2Tenant,
String ifNoneMatch)
Get details of an API comment
Get the individual comment given by a username for a certain API.
|
com.squareup.okhttp.Call |
getCommentOfAPIAsync(String commentId,
String apiId,
String xWSO2Tenant,
String ifNoneMatch,
ApiCallback<CommentDTO> callback)
Get details of an API comment (asynchronously)
Get the individual comment given by a username for a certain API.
|
com.squareup.okhttp.Call |
getCommentOfAPICall(String commentId,
String apiId,
String xWSO2Tenant,
String ifNoneMatch,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getCommentOfAPI
|
ApiResponse<CommentDTO> |
getCommentOfAPIWithHttpInfo(String commentId,
String apiId,
String xWSO2Tenant,
String ifNoneMatch)
Get details of an API comment
Get the individual comment given by a username for a certain API.
|
void |
setApiClient(ApiClient apiClient) |
public CommentsApi()
public CommentsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call addCommentToAPICall(String apiId, CommentDTO body, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)body - Comment object that should to be added (required)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic CommentDTO addCommentToAPI(String apiId, CommentDTO body) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)body - Comment object that should to be added (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<CommentDTO> addCommentToAPIWithHttpInfo(String apiId, CommentDTO body) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)body - Comment object that should 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 addCommentToAPIAsync(String apiId, CommentDTO body, ApiCallback<CommentDTO> callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)body - Comment object that should 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 deleteCommentCall(String commentId, String apiId, String ifMatch, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
commentId - Comment Id (required)apiId - **API ID** consisting of the **UUID** of the API. (required)ifMatch - Validator for conditional requests; based on ETag. (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void deleteComment(String commentId, String apiId, String ifMatch) throws ApiException
commentId - Comment Id (required)apiId - **API ID** consisting of the **UUID** of the API. (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> deleteCommentWithHttpInfo(String commentId, String apiId, String ifMatch) throws ApiException
commentId - Comment Id (required)apiId - **API ID** consisting of the **UUID** of the API. (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 com.squareup.okhttp.Call deleteCommentAsync(String commentId, String apiId, String ifMatch, ApiCallback<Void> callback) throws ApiException
commentId - Comment Id (required)apiId - **API ID** consisting of the **UUID** of the API. (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 com.squareup.okhttp.Call getAllCommentsOfAPICall(String apiId, String xWSO2Tenant, Integer limit, Integer offset, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)xWSO2Tenant - For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from. (optional)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)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic CommentListDTO getAllCommentsOfAPI(String apiId, String xWSO2Tenant, Integer limit, Integer offset) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)xWSO2Tenant - For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from. (optional)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)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<CommentListDTO> getAllCommentsOfAPIWithHttpInfo(String apiId, String xWSO2Tenant, Integer limit, Integer offset) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)xWSO2Tenant - For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from. (optional)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)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getAllCommentsOfAPIAsync(String apiId, String xWSO2Tenant, Integer limit, Integer offset, ApiCallback<CommentListDTO> callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)xWSO2Tenant - For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from. (optional)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)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 getCommentOfAPICall(String commentId, String apiId, String xWSO2Tenant, String ifNoneMatch, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
commentId - Comment Id (required)apiId - **API ID** consisting of the **UUID** of the API. (required)xWSO2Tenant - For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from. (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 CommentDTO getCommentOfAPI(String commentId, String apiId, String xWSO2Tenant, String ifNoneMatch) throws ApiException
commentId - Comment Id (required)apiId - **API ID** consisting of the **UUID** of the API. (required)xWSO2Tenant - For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from. (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<CommentDTO> getCommentOfAPIWithHttpInfo(String commentId, String apiId, String xWSO2Tenant, String ifNoneMatch) throws ApiException
commentId - Comment Id (required)apiId - **API ID** consisting of the **UUID** of the API. (required)xWSO2Tenant - For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from. (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 getCommentOfAPIAsync(String commentId, String apiId, String xWSO2Tenant, String ifNoneMatch, ApiCallback<CommentDTO> callback) throws ApiException
commentId - Comment Id (required)apiId - **API ID** consisting of the **UUID** of the API. (required)xWSO2Tenant - For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from. (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 objectCopyright © 2020 WSO2 Inc. All rights reserved.