getTutorReviewsWithHttpInfo method
Performs an HTTP 'GET /api/v2/tutor/{id}/reviews/' operation and returns the Response.
Parameters:
Implementation
Future<Response> getTutorReviewsWithHttpInfo(int id, { int? page, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v2/tutor/{id}/reviews/'
.replaceAll('{id}', id.toString());
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (page != null) {
queryParams.addAll(_queryParams('', 'page', page));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}