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
(id: int)¶ Get a single team.
Parameters: id – 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 – Sort by field
- sort_order – asc or desc (default asc)
- page – page number (default 1)
Returns: List of team objects
-