mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-05 13:35:23 +02:00
feat: implemented "order by" API parameters for recipe, food, and unit 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
This commit is contained in:
parent
932f4a72df
commit
7541175b75
6 changed files with 48 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue