873db06255
Updates the API documentation of groups with infos to return codes. The function calls in the groups API have updated documentation and return `400 Bad Request` status code if a required attribute is missing.
1.1 KiB
1.1 KiB
List project groups
Get a list of groups. (As user: my groups, as admin: all groups)
GET /groups
[
{
"id": 1,
"name": "Foobar Group",
"path": "foo-bar",
"owner_id": 18
}
]
Return values:
200 Ok
on success and list of groups401 Unauthorized
if user is not authenticated404 Not Found
if something fails
Details of a group
Get all details of a group.
GET /groups/:id
Parameters:
id
(required) - The ID of a group
Return values:
200 Ok
on success and the details of a group401 Unauthorized
if user not authenticated404 Not Found
if group ID not found
New group
Creates a new project group. Available only for admin.
POST /groups
Parameters:
name
(required) - The name of the grouppath
(required) - The path of the group
Return valueS:
201 Created
on success and the newly created group400 Bad Request
if one of the required attributes not given401 Unauthorized
if user is not authenticated404 Not Found
if something fails