Group Service
Wrapper for the '/group' API.
List of all options:
- Get all
- Create/get one/update/delete a group
Group management
api.group_service.get_all()
group = Group()
group.description = 'example group'
group.name = 'group001'
group.nsCode = 'examplecode'
group = api.group_service.create(group)
group.description = 'modified description'
api.group_service.update(group)
group = api.group_service.get(group.id)
print('\nModified group fields : {} \n'.format(group.serialize()))
api.group_service.delete(group.id)
Output
INFO:root:Found 3 groups
INFO:root:Successfully created group with the id exampleId
INFO:root:Successfully modified group with the id exampleId
INFO:root:Found group with id exampleId
Modified group fields : {'id': 'exampleId',
'name': 'group001',
'description': 'modified description',
'nsCode': 'examplecode'}
INFO:root:Successfully deleted group with id exampleId