Unit¶
-
class
moco_wrapper.models.
Unit
(moco)¶ Class for handling teams.
When a user is created he always belongs to a team (e.g. development). These can be managed with this model.
-
get
(unit_id: int)¶ Get a single team.
Parameters: unit_id (int) – Id of the team Returns: Single team object
-
getlist
(sort_by: str = None, sort_order: str = 'asc', page: int = 1)¶ Retrieve a list of teams.
Parameters: - sort_by (str) – Sort by field
- sort_order (str) – asc or desc (default asc)
- page (int) – page number (default 1)
Returns: List of team objects
-