public class CommentsApi extends Object
| Constructor and Description |
|---|
CommentsApi() |
CommentsApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
CommentDTO |
addCommentToAPI(String apiId,
PostRequestBodyDTO postRequestBodyDTO,
String replyTo)
Add an API Comment
|
okhttp3.Call |
addCommentToAPIAsync(String apiId,
PostRequestBodyDTO postRequestBodyDTO,
String replyTo,
ApiCallback<CommentDTO> _callback)
Add an API Comment (asynchronously)
|
okhttp3.Call |
addCommentToAPICall(String apiId,
PostRequestBodyDTO postRequestBodyDTO,
String replyTo,
ApiCallback _callback)
Build call for addCommentToAPI
|
ApiResponse<CommentDTO> |
addCommentToAPIWithHttpInfo(String apiId,
PostRequestBodyDTO postRequestBodyDTO,
String replyTo)
Add an API Comment
|
void |
deleteComment(String commentId,
String apiId,
String ifMatch)
Delete an API Comment
Remove a Comment
|
okhttp3.Call |
deleteCommentAsync(String commentId,
String apiId,
String ifMatch,
ApiCallback<Void> _callback)
Delete an API Comment (asynchronously)
Remove a Comment
|
okhttp3.Call |
deleteCommentCall(String commentId,
String apiId,
String ifMatch,
ApiCallback _callback)
Build call for deleteComment
|
ApiResponse<Void> |
deleteCommentWithHttpInfo(String commentId,
String apiId,
String ifMatch)
Delete an API Comment
Remove a Comment
|
CommentDTO |
editCommentOfAPI(String commentId,
String apiId,
PatchRequestBodyDTO patchRequestBodyDTO)
Edit a comment
Edit the individual comment
|
okhttp3.Call |
editCommentOfAPIAsync(String commentId,
String apiId,
PatchRequestBodyDTO patchRequestBodyDTO,
ApiCallback<CommentDTO> _callback)
Edit a comment (asynchronously)
Edit the individual comment
|
okhttp3.Call |
editCommentOfAPICall(String commentId,
String apiId,
PatchRequestBodyDTO patchRequestBodyDTO,
ApiCallback _callback)
Build call for editCommentOfAPI
|
ApiResponse<CommentDTO> |
editCommentOfAPIWithHttpInfo(String commentId,
String apiId,
PatchRequestBodyDTO patchRequestBodyDTO)
Edit a comment
Edit the individual comment
|
CommentListDTO |
getAllCommentsOfAPI(String apiId,
String xWSO2Tenant,
Integer limit,
Integer offset,
Boolean includeCommenterInfo)
Retrieve API Comments
Get a list of Comments that are already added to APIs
|
okhttp3.Call |
getAllCommentsOfAPIAsync(String apiId,
String xWSO2Tenant,
Integer limit,
Integer offset,
Boolean includeCommenterInfo,
ApiCallback<CommentListDTO> _callback)
Retrieve API Comments (asynchronously)
Get a list of Comments that are already added to APIs
|
okhttp3.Call |
getAllCommentsOfAPICall(String apiId,
String xWSO2Tenant,
Integer limit,
Integer offset,
Boolean includeCommenterInfo,
ApiCallback _callback)
Build call for getAllCommentsOfAPI
|
ApiResponse<CommentListDTO> |
getAllCommentsOfAPIWithHttpInfo(String apiId,
String xWSO2Tenant,
Integer limit,
Integer offset,
Boolean includeCommenterInfo)
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,
Boolean includeCommenterInfo,
Integer replyLimit,
Integer replyOffset)
Get Details of an API Comment
Get the individual comment given by a username for a certain API.
|
okhttp3.Call |
getCommentOfAPIAsync(String commentId,
String apiId,
String xWSO2Tenant,
String ifNoneMatch,
Boolean includeCommenterInfo,
Integer replyLimit,
Integer replyOffset,
ApiCallback<CommentDTO> _callback)
Get Details of an API Comment (asynchronously)
Get the individual comment given by a username for a certain API.
|
okhttp3.Call |
getCommentOfAPICall(String commentId,
String apiId,
String xWSO2Tenant,
String ifNoneMatch,
Boolean includeCommenterInfo,
Integer replyLimit,
Integer replyOffset,
ApiCallback _callback)
Build call for getCommentOfAPI
|
ApiResponse<CommentDTO> |
getCommentOfAPIWithHttpInfo(String commentId,
String apiId,
String xWSO2Tenant,
String ifNoneMatch,
Boolean includeCommenterInfo,
Integer replyLimit,
Integer replyOffset)
Get Details of an API Comment
Get the individual comment given by a username for a certain API.
|
CommentListDTO |
getRepliesOfComment(String commentId,
String apiId,
String xWSO2Tenant,
Integer limit,
Integer offset,
String ifNoneMatch,
Boolean includeCommenterInfo)
Get replies of a comment
Get replies of a comment
|
okhttp3.Call |
getRepliesOfCommentAsync(String commentId,
String apiId,
String xWSO2Tenant,
Integer limit,
Integer offset,
String ifNoneMatch,
Boolean includeCommenterInfo,
ApiCallback<CommentListDTO> _callback)
Get replies of a comment (asynchronously)
Get replies of a comment
|
okhttp3.Call |
getRepliesOfCommentCall(String commentId,
String apiId,
String xWSO2Tenant,
Integer limit,
Integer offset,
String ifNoneMatch,
Boolean includeCommenterInfo,
ApiCallback _callback)
Build call for getRepliesOfComment
|
ApiResponse<CommentListDTO> |
getRepliesOfCommentWithHttpInfo(String commentId,
String apiId,
String xWSO2Tenant,
Integer limit,
Integer offset,
String ifNoneMatch,
Boolean includeCommenterInfo)
Get replies of a comment
Get replies of a comment
|
void |
setApiClient(ApiClient apiClient) |
public CommentsApi()
public CommentsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public okhttp3.Call addCommentToAPICall(String apiId, PostRequestBodyDTO postRequestBodyDTO, String replyTo, ApiCallback _callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)postRequestBodyDTO - (required)replyTo - ID of the parent comment. (optional)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic CommentDTO addCommentToAPI(String apiId, PostRequestBodyDTO postRequestBodyDTO, String replyTo) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)postRequestBodyDTO - (required)replyTo - ID of the parent comment. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<CommentDTO> addCommentToAPIWithHttpInfo(String apiId, PostRequestBodyDTO postRequestBodyDTO, String replyTo) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)postRequestBodyDTO - (required)replyTo - ID of the parent comment. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call addCommentToAPIAsync(String apiId, PostRequestBodyDTO postRequestBodyDTO, String replyTo, ApiCallback<CommentDTO> _callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)postRequestBodyDTO - (required)replyTo - ID of the parent comment. (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 deleteCommentCall(String commentId, String apiId, String ifMatch, ApiCallback _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 - Callback for upload/download progressApiException - 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 okhttp3.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 okhttp3.Call editCommentOfAPICall(String commentId, String apiId, PatchRequestBodyDTO patchRequestBodyDTO, ApiCallback _callback) throws ApiException
commentId - Comment Id (required)apiId - **API ID** consisting of the **UUID** of the API. (required)patchRequestBodyDTO - (required)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic CommentDTO editCommentOfAPI(String commentId, String apiId, PatchRequestBodyDTO patchRequestBodyDTO) throws ApiException
commentId - Comment Id (required)apiId - **API ID** consisting of the **UUID** of the API. (required)patchRequestBodyDTO - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<CommentDTO> editCommentOfAPIWithHttpInfo(String commentId, String apiId, PatchRequestBodyDTO patchRequestBodyDTO) throws ApiException
commentId - Comment Id (required)apiId - **API ID** consisting of the **UUID** of the API. (required)patchRequestBodyDTO - (required)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call editCommentOfAPIAsync(String commentId, String apiId, PatchRequestBodyDTO patchRequestBodyDTO, ApiCallback<CommentDTO> _callback) throws ApiException
commentId - Comment Id (required)apiId - **API ID** consisting of the **UUID** of the API. (required)patchRequestBodyDTO - (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 okhttp3.Call getAllCommentsOfAPICall(String apiId, String xWSO2Tenant, Integer limit, Integer offset, Boolean includeCommenterInfo, ApiCallback _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 retrieved 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)includeCommenterInfo - Whether we need to display commentor details. (optional, default to false)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic CommentListDTO getAllCommentsOfAPI(String apiId, String xWSO2Tenant, Integer limit, Integer offset, Boolean includeCommenterInfo) 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 retrieved 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)includeCommenterInfo - Whether we need to display commentor details. (optional, default to false)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, Boolean includeCommenterInfo) 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 retrieved 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)includeCommenterInfo - Whether we need to display commentor details. (optional, default to false)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call getAllCommentsOfAPIAsync(String apiId, String xWSO2Tenant, Integer limit, Integer offset, Boolean includeCommenterInfo, 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 retrieved 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)includeCommenterInfo - Whether we need to display commentor details. (optional, default to false)_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 getCommentOfAPICall(String commentId, String apiId, String xWSO2Tenant, String ifNoneMatch, Boolean includeCommenterInfo, Integer replyLimit, Integer replyOffset, ApiCallback _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 retrieved from. (optional)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)includeCommenterInfo - Whether we need to display commentor details. (optional, default to false)replyLimit - Maximum size of replies array to return. (optional, default to 25)replyOffset - Starting point within the complete list of replies. (optional, default to 0)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic CommentDTO getCommentOfAPI(String commentId, String apiId, String xWSO2Tenant, String ifNoneMatch, Boolean includeCommenterInfo, Integer replyLimit, Integer replyOffset) 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 retrieved from. (optional)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)includeCommenterInfo - Whether we need to display commentor details. (optional, default to false)replyLimit - Maximum size of replies array to return. (optional, default to 25)replyOffset - Starting point within the complete list of replies. (optional, default to 0)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, Boolean includeCommenterInfo, Integer replyLimit, Integer replyOffset) 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 retrieved from. (optional)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)includeCommenterInfo - Whether we need to display commentor details. (optional, default to false)replyLimit - Maximum size of replies array to return. (optional, default to 25)replyOffset - Starting point within the complete list of replies. (optional, default to 0)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call getCommentOfAPIAsync(String commentId, String apiId, String xWSO2Tenant, String ifNoneMatch, Boolean includeCommenterInfo, Integer replyLimit, Integer replyOffset, 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 retrieved from. (optional)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)includeCommenterInfo - Whether we need to display commentor details. (optional, default to false)replyLimit - Maximum size of replies array to return. (optional, default to 25)replyOffset - Starting point within the complete list of replies. (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 okhttp3.Call getRepliesOfCommentCall(String commentId, String apiId, String xWSO2Tenant, Integer limit, Integer offset, String ifNoneMatch, Boolean includeCommenterInfo, ApiCallback _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 retrieved 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)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)includeCommenterInfo - Whether we need to display commentor details. (optional, default to false)_callback - Callback for upload/download progressApiException - If fail to serialize the request body objectpublic CommentListDTO getRepliesOfComment(String commentId, String apiId, String xWSO2Tenant, Integer limit, Integer offset, String ifNoneMatch, Boolean includeCommenterInfo) 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 retrieved 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)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)includeCommenterInfo - Whether we need to display commentor details. (optional, default to false)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<CommentListDTO> getRepliesOfCommentWithHttpInfo(String commentId, String apiId, String xWSO2Tenant, Integer limit, Integer offset, String ifNoneMatch, Boolean includeCommenterInfo) 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 retrieved 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)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)includeCommenterInfo - Whether we need to display commentor details. (optional, default to false)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic okhttp3.Call getRepliesOfCommentAsync(String commentId, String apiId, String xWSO2Tenant, Integer limit, Integer offset, String ifNoneMatch, Boolean includeCommenterInfo, ApiCallback<CommentListDTO> _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 retrieved 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)ifNoneMatch - Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resourec. (optional)includeCommenterInfo - Whether we need to display commentor details. (optional, default to false)_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.