mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-14 23:25:25 +03:00
Convert app endpoints to FastAPI
This commit is contained in:
parent
747f72b0fc
commit
11186b4e70
5
frigate/api/defs/app_body.py
Normal file
5
frigate/api/defs/app_body.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
from pydantic import BaseModel
|
||||||
|
|
||||||
|
|
||||||
|
class AppConfigSetBody(BaseModel):
|
||||||
|
requires_restart: int = 1
|
||||||
12
frigate/api/defs/app_query_parameters.py
Normal file
12
frigate/api/defs/app_query_parameters.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
from typing import Optional
|
||||||
|
|
||||||
|
from pydantic import BaseModel
|
||||||
|
|
||||||
|
|
||||||
|
class AppTimelineHourlyQueryParameters(BaseModel):
|
||||||
|
cameras: Optional[str] = "all"
|
||||||
|
labels: Optional[str] = "all"
|
||||||
|
after: Optional[float] = None
|
||||||
|
before: Optional[float] = None
|
||||||
|
limit: Optional[int] = 200
|
||||||
|
timezone: Optional[str] = "utc"
|
||||||
Loading…
Reference in New Issue
Block a user