You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 6
Next »
Group API can perform functions to interact or exchange data for Groups.
| Name | Description |
---|
1 | | Name | Description |
---|
URL | /group | HTTP Method | POST | Body Parameters | Parameter | Description |
---|
id | Group ID. | name | Group name. | description | Description of group. |
| Sample Response | |
|
2 | |
Delete a group via group ID.
Name | Description |
---|
URL | /group/{id} | HTTP Method | DELETE | Path Parameters | Parameter | Description |
---|
id | Group ID. |
| Sample Response |
{
"date": "Wed Aug 28 15:43:58 SGT 2019",
"code": "200",
"message": "Successful operation"
}
|
|
3 | |
Get all groups by default. Able to filter or sort the returned results via parameters.
Name | Description |
---|
URL | /group/find | HTTP Method | GET | Query String Parameters | Parameter | Description |
---|
nameFilter | Filters the response via group ID. | organizationId | Filter groups that belong to an organization, via organization ID. | sort | Group data column to sort. Must be used in conjunction with "sortDescending" parameter. | sortDescending | Sort the specified "sort" parameter value in ascending or descending order. Expects a boolean value. Must be used in conjunction with "sort" parameter. | startOffset | Starting position of records to start query. Expects an integer. | pageSize | Number of results to return. Expects an integer. |
| Sample Response | |
|
4 | |
Find the group that belongs to the specified user via username.
Name | Description |
---|
URL | /group/findByUser/{username} | HTTP Method | GET | Query String Parameters | Parameter | Description |
---|
nameFilter | Filters the response via group ID. | organizationId | Filter groups that belong to an organization, via organization ID. | sort | Group data column to sort. Must be used in conjunction with "sortDescending" parameter. | sortDescending | Sort the specified "sort" parameter value in ascending or descending order. Expects a boolean value. Must be used in conjunction with "sort" parameter. | startOffset | Starting position of records to start query. Expects an integer. | pageSize | Number of results to return. Expects an integer. |
| Sample Response | |
|
5 | |
Get details of a group via group ID.
Name | Description |
---|
URL | /group/{id} | HTTP Method | GET | Path Parameters | Parameter | Description |
---|
id | Group ID. |
| Sample Response | |
|
6 | |
Update the details of a group.
Name | Description |
---|
URL | /group | HTTP Method | PUT | Body Parameters | Parameter | Description |
---|
id | Group ID. | name | Group name. | description | Description of group. |
| Sample Response | |
|