UX improvements
Signed-off-by: András Schmelczer <andras@schmelczer.dev>
This commit is contained in:
parent
498c7f0459
commit
106ef5cc3f
1 changed files with 217 additions and 26 deletions
|
|
@ -11,3 +11,17 @@ class Query(BaseModel):
|
|||
sort: List[SortBy] = []
|
||||
skip: int = 0
|
||||
take: int = 100
|
||||
|
||||
class Config:
|
||||
schema_extra = {
|
||||
"example": {
|
||||
"filter": [
|
||||
{"property": "execution_time_ms", "operator": ">", "value": 100}
|
||||
],
|
||||
"sort": [
|
||||
{"column_id": "execution_time_ms", "direction": "asc"},
|
||||
{"column_id": "id", "direction": "desc"},
|
||||
],
|
||||
"take": 10,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue