Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implemented "order by" API parameters for recipe, food, and uni…
…t queries (#1356) * Added API params to order by different properties * fix for incorrect var name * removed invalid default order_by * implemented fallback for invalid user input
- Loading branch information
1 parent
932f4a7
commit 7541175
Showing
6 changed files
with
48 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
from typing import Optional | ||
|
||
from mealie.schema._mealie import MealieModel | ||
|
||
|
||
class GetAll(MealieModel): | ||
start: int = 0 | ||
limit: int = 999 | ||
order_by: Optional[str] | ||
order_descending: Optional[bool] = True |