The api allows sorting as follows:
Multiple fields are allowed and should be separated by a comma. For example "-scheduleDate, +scheduleTime".
The code currently only supports sorting ascending since it prefixes the "sort by" field with a +. This means you can't sort descending.
Code examples:
A potential solution would be to add an ascending=True function parameter to the end of the linked function's definitions, then doing the following:
'sort': ("+" if ascending else "-") + f"{sort_by}"
The api allows sorting as follows:
The code currently only supports sorting ascending since it prefixes the "sort by" field with a +. This means you can't sort descending.
Code examples:
Schiphol-API/src/schipholapi/api.py
Line 33 in 99590d7
Schiphol-API/src/schipholapi/api.py
Line 66 in 99590d7
Schiphol-API/src/schipholapi/api.py
Line 100 in 99590d7
Schiphol-API/src/schipholapi/api.py
Line 134 in 99590d7
A potential solution would be to add an
ascending=Truefunction parameter to the end of the linked function's definitions, then doing the following: