listRecordsWithHttpInfo method
List records for an organization. organization_id query param is required (handler returns 400 otherwise).
Note: This method returns the HTTP Response.
Parameters:
Implementation
Future<Response> listRecordsWithHttpInfo(String organizationId, { String? recordTypeId, int? limit, }) async {
// ignore: prefer_const_declarations
final path = r'/v1/records';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
queryParams.addAll(_queryParams('', 'organization_id', organizationId));
if (recordTypeId != null) {
queryParams.addAll(_queryParams('', 'record_type_id', recordTypeId));
}
if (limit != null) {
queryParams.addAll(_queryParams('', 'limit', limit));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}