public class RatingsApi extends Object
| Constructor and Description |
|---|
RatingsApi() |
RatingsApi(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
RatingListDTO |
apisApiIdRatingsGet(String apiId,
Integer limit,
Integer offset,
String xWSO2Tenant)
Retrieve API ratings
This operation can be used to retrieve the list of ratings of an API.
|
com.squareup.okhttp.Call |
apisApiIdRatingsGetAsync(String apiId,
Integer limit,
Integer offset,
String xWSO2Tenant,
ApiCallback<RatingListDTO> callback)
Retrieve API ratings (asynchronously)
This operation can be used to retrieve the list of ratings of an API.
|
com.squareup.okhttp.Call |
apisApiIdRatingsGetCall(String apiId,
Integer limit,
Integer offset,
String xWSO2Tenant,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for apisApiIdRatingsGet
|
ApiResponse<RatingListDTO> |
apisApiIdRatingsGetWithHttpInfo(String apiId,
Integer limit,
Integer offset,
String xWSO2Tenant)
Retrieve API ratings
This operation can be used to retrieve the list of ratings of an API.
|
void |
apisApiIdUserRatingDelete(String apiId,
String xWSO2Tenant,
String ifMatch)
Delete user API rating
This operation can be used to delete logged in user API rating.
|
com.squareup.okhttp.Call |
apisApiIdUserRatingDeleteAsync(String apiId,
String xWSO2Tenant,
String ifMatch,
ApiCallback<Void> callback)
Delete user API rating (asynchronously)
This operation can be used to delete logged in user API rating.
|
com.squareup.okhttp.Call |
apisApiIdUserRatingDeleteCall(String apiId,
String xWSO2Tenant,
String ifMatch,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for apisApiIdUserRatingDelete
|
ApiResponse<Void> |
apisApiIdUserRatingDeleteWithHttpInfo(String apiId,
String xWSO2Tenant,
String ifMatch)
Delete user API rating
This operation can be used to delete logged in user API rating.
|
RatingDTO |
apisApiIdUserRatingGet(String apiId,
String xWSO2Tenant,
String ifNoneMatch)
Retrieve API rating of user
This operation can be used to get the user rating of an API.
|
com.squareup.okhttp.Call |
apisApiIdUserRatingGetAsync(String apiId,
String xWSO2Tenant,
String ifNoneMatch,
ApiCallback<RatingDTO> callback)
Retrieve API rating of user (asynchronously)
This operation can be used to get the user rating of an API.
|
com.squareup.okhttp.Call |
apisApiIdUserRatingGetCall(String apiId,
String xWSO2Tenant,
String ifNoneMatch,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for apisApiIdUserRatingGet
|
ApiResponse<RatingDTO> |
apisApiIdUserRatingGetWithHttpInfo(String apiId,
String xWSO2Tenant,
String ifNoneMatch)
Retrieve API rating of user
This operation can be used to get the user rating of an API.
|
RatingDTO |
apisApiIdUserRatingPut(String apiId,
RatingDTO body,
String xWSO2Tenant)
Add or update logged in user's rating for an API
This operation can be used to add or update an API rating.
|
com.squareup.okhttp.Call |
apisApiIdUserRatingPutAsync(String apiId,
RatingDTO body,
String xWSO2Tenant,
ApiCallback<RatingDTO> callback)
Add or update logged in user's rating for an API (asynchronously)
This operation can be used to add or update an API rating.
|
com.squareup.okhttp.Call |
apisApiIdUserRatingPutCall(String apiId,
RatingDTO body,
String xWSO2Tenant,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for apisApiIdUserRatingPut
|
ApiResponse<RatingDTO> |
apisApiIdUserRatingPutWithHttpInfo(String apiId,
RatingDTO body,
String xWSO2Tenant)
Add or update logged in user's rating for an API
This operation can be used to add or update an API rating.
|
ApiClient |
getApiClient() |
void |
setApiClient(ApiClient apiClient) |
public RatingsApi()
public RatingsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call apisApiIdRatingsGetCall(String apiId, Integer limit, Integer offset, String xWSO2Tenant, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) 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)xWSO2Tenant - For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from. (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic RatingListDTO apisApiIdRatingsGet(String apiId, Integer limit, Integer offset, String xWSO2Tenant) 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)xWSO2Tenant - For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<RatingListDTO> apisApiIdRatingsGetWithHttpInfo(String apiId, Integer limit, Integer offset, String xWSO2Tenant) 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)xWSO2Tenant - For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call apisApiIdRatingsGetAsync(String apiId, Integer limit, Integer offset, String xWSO2Tenant, ApiCallback<RatingListDTO> 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)xWSO2Tenant - For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from. (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 apisApiIdUserRatingDeleteCall(String apiId, String xWSO2Tenant, String ifMatch, 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)ifMatch - Validator for conditional requests; based on ETag. (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic void apisApiIdUserRatingDelete(String apiId, String xWSO2Tenant, String ifMatch) 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)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> apisApiIdUserRatingDeleteWithHttpInfo(String apiId, String xWSO2Tenant, String ifMatch) 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)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 apisApiIdUserRatingDeleteAsync(String apiId, String xWSO2Tenant, String ifMatch, ApiCallback<Void> 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)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 apisApiIdUserRatingGetCall(String apiId, String xWSO2Tenant, String ifNoneMatch, 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)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 RatingDTO apisApiIdUserRatingGet(String apiId, String xWSO2Tenant, String ifNoneMatch) 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)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<RatingDTO> apisApiIdUserRatingGetWithHttpInfo(String apiId, String xWSO2Tenant, String ifNoneMatch) 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)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 apisApiIdUserRatingGetAsync(String apiId, String xWSO2Tenant, String ifNoneMatch, ApiCallback<RatingDTO> 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)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 com.squareup.okhttp.Call apisApiIdUserRatingPutCall(String apiId, RatingDTO body, String xWSO2Tenant, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)body - Rating object that should to be added (required)xWSO2Tenant - For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from. (optional)progressListener - Progress listenerprogressRequestListener - Progress request listenerApiException - If fail to serialize the request body objectpublic RatingDTO apisApiIdUserRatingPut(String apiId, RatingDTO body, String xWSO2Tenant) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)body - Rating object that should to be added (required)xWSO2Tenant - For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<RatingDTO> apisApiIdUserRatingPutWithHttpInfo(String apiId, RatingDTO body, String xWSO2Tenant) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)body - Rating object that should to be added (required)xWSO2Tenant - For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from. (optional)ApiException - If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call apisApiIdUserRatingPutAsync(String apiId, RatingDTO body, String xWSO2Tenant, ApiCallback<RatingDTO> callback) throws ApiException
apiId - **API ID** consisting of the **UUID** of the API. (required)body - Rating object that should to be added (required)xWSO2Tenant - For cross-tenant invocations, this is used to specify the tenant domain, where the resource need to be retirieved from. (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.