Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add order filter for /cars/{carId}/trips #58

Open
bnjjj opened this issue Jan 7, 2017 · 0 comments
Open

Add order filter for /cars/{carId}/trips #58

bnjjj opened this issue Jan 7, 2017 · 0 comments

Comments

@bnjjj
Copy link
Contributor

bnjjj commented Jan 7, 2017

I would like to add a query params named "sort" in order to sort by a param. For example if I make a request like /cars/{carId}/trips?sort=-mileage in order to have trips ordered in decreasing order of mileage value. The implementation is an example in order to explain my need.

It's in order to avoid this kind of response from "talk to my car" -> "Vos trajets ne sont pas assez significatifs pour calculer votre consommation. Dans vos 15 derniers trajets aucun ne dépasse 20km, je ne préfère donc pas m'avancer sur une consommation qui ne serait pas très représentative, j'espère que tu comprends :)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant