-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update devices routes to use BFF only
Update API schema and BFF schema to allow UI to only use BFF for devices.
- Loading branch information
1 parent
40301db
commit 28b2913
Showing
3 changed files
with
59 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from __future__ import annotations | ||
|
||
from pydantic import BaseModel | ||
|
||
|
||
class DevicesDeleteRequest(BaseModel): | ||
devices: list[str] | ||
|
||
|
||
class DevicesPatchRequest(BaseModel): | ||
devices: list[str] | ||
software: str | None = None | ||
name: str | None = None | ||
pinned: bool | None = None | ||
feed: str | None = None | ||
force_update: bool | None = None |
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