apiV2SchoolsupplyJobsListWithHttpInfo method
Interface to use multiple serializers depends on requested action
Note: This method returns the HTTP Response.
Parameters:
-
int level:
-
List<String> ordering: Ordering *
price- Price *-price- Price (descending) *experience- Experience *-experience- Experience (descending) *score- Score *-score- Score (descending) -
int page: A page number within the paginated result set.
-
int pricingMax:
-
int pricingMin:
-
String ref:
-
int subject:
Implementation
Future<Response> apiV2SchoolsupplyJobsListWithHttpInfo({ int? level, List<String>? ordering, int? page, int? pricingMax, int? pricingMin, String? ref, int? subject, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v2/schoolsupply/jobs/';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (level != null) {
queryParams.addAll(_queryParams('', 'level', level));
}
if (ordering != null) {
queryParams.addAll(_queryParams('csv', 'ordering', ordering));
}
if (page != null) {
queryParams.addAll(_queryParams('', 'page', page));
}
if (pricingMax != null) {
queryParams.addAll(_queryParams('', 'pricing_max', pricingMax));
}
if (pricingMin != null) {
queryParams.addAll(_queryParams('', 'pricing_min', pricingMin));
}
if (ref != null) {
queryParams.addAll(_queryParams('', 'ref', ref));
}
if (subject != null) {
queryParams.addAll(_queryParams('', 'subject', subject));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}