QuickBuild2 Documentation
|
Get all groups in the systemSyntaxGroups in the system can be accessed using http GET method through below url: http://localhost:8810/rest/groups
The response is of mime type application/xml and the content is XML representation of all groups in the system. SecurityYou will need to use http BASIC authentication to login as authorized QuickBuild user if the anonymous does not have adminstrative right. DemoBelow curl command demonstrates how to get all groups: curl -u admin:admin http://localhost:8810/rest/groups
Access group by idSyntaxGroup can be accessed by id using http GET method through below url: http://localhost:8810/rest/groups/<group id>
The response is of mime type application/xml and the content is XML representation of the group. SecurityYou will need to use http BASIC authentication to login as authorized QuickBuild user if the anonymous does not have adminstrative right. DemoBelow curl command demonstrates how to get group of id 1: curl -u admin:admin http://localhost:8810/rest/groups/1
Update groupSyntaxGroup can be updated by posting xml representation of the group to below url: http://localhost:8810/rest/groups
Normally you do not need to create the XML from scratch: you may retrieve XML representation of the group using http GET method, modify certain parts of the XML and post back to above url. SecurityYou will need to use http BASIC authentication to login as administrator if the anonymous does not have administrative right. DemoWe will use curl to demonstrate how to modify description of group developer:
Create groupSyntaxGroup can be created by posting XML representation of the group to below url: http://localhost:8810/rest/groups
Please note that the posted XML should NOT contain the id element; otherwise, QuickBuild will treat the post as an updating to the group with that id. SecurityYou will need to use http BASIC authentication to login as administrator if the anonymous does not have administrative right. DemoWe will use curl to demonstrate how to create a new group tester by copying the existing group developer.
Delete groupSyntaxGroup can be deleted using http DELETE method through below url: http://localhost:8810/rest/groups/<group id>
Here <group id> stands for id of the group to be deleted. SecurityYou will need to use http BASIC authentication to login as administrator if the anonymous does not have administrative right. DemoBelow curl command demonstrates how to delete the group with id 2: curl -X DELETE -u admin:admin http://localhost:8810/rest/groups/2
|