rawFilterServicesByWithHttpInfo method
Future<Response>
rawFilterServicesByWithHttpInfo(
- FilterChain<
ServiceDto> filterChainService, { - String? startDocumentId,
- int? limit,
List services for the current user (HcParty) or the given hcparty in the filter
Returns a list of contacts along with next start keys and Document ID. If the nextStartKey is Null it means that this is the last page.
Note: This method returns the HTTP Response
.
Parameters:
-
FilterChain<ServiceDto> filterChainService (required):
-
String startDocumentId: A Contact document ID
-
int limit: Number of rows
Implementation
Future<Response> rawFilterServicesByWithHttpInfo(FilterChain<ServiceDto> filterChainService, { String? startDocumentId, int? limit, }) async {
// ignore: prefer_const_declarations
final path = r'/rest/v1/contact/service/filter';
// ignore: prefer_final_locals
Object? postBody = filterChainService;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (startDocumentId != null) {
queryParams.addAll(_queryParams('', 'startDocumentId', startDocumentId));
}
if (limit != null) {
queryParams.addAll(_queryParams('', 'limit', limit));
}
const authNames = <String>[r'basicSchema'];
const contentTypes = <String>['application/json'];
return apiClient.invokeAPI(
path,
'POST',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
authNames,
);
}