feat: get boards endpoint
This commit is contained in:
32
schemas/board.py
Normal file
32
schemas/board.py
Normal file
@ -0,0 +1,32 @@
|
||||
from schemas.base import BaseSchema
|
||||
from schemas.status import StatusSchema
|
||||
|
||||
|
||||
# region Entity
|
||||
|
||||
|
||||
class BaseBoardSchema(BaseSchema):
|
||||
name: str
|
||||
|
||||
|
||||
class BoardSchema(BaseBoardSchema):
|
||||
id: int
|
||||
lexorank: str
|
||||
statuses: list[StatusSchema]
|
||||
|
||||
|
||||
# endregion
|
||||
|
||||
# region Requests
|
||||
|
||||
|
||||
# endregion
|
||||
|
||||
# region Responses
|
||||
|
||||
|
||||
class GetBoardsResponse(BaseSchema):
|
||||
boards: list[BoardSchema]
|
||||
|
||||
|
||||
# endregion Responses
|
||||
10
schemas/status.py
Normal file
10
schemas/status.py
Normal file
@ -0,0 +1,10 @@
|
||||
from schemas.base import BaseSchema
|
||||
|
||||
|
||||
class BaseStatusSchema(BaseSchema):
|
||||
name: str
|
||||
|
||||
|
||||
class StatusSchema(BaseStatusSchema):
|
||||
id: int
|
||||
lexorank: str
|
||||
Reference in New Issue
Block a user