| Name | Description |
|---|
| 1 | | | Panel |
|---|
| borderColor | black |
|---|
| bgColor | #fbfff5 |
|---|
| borderStyle | solid |
|---|
| Add a new grade. |
Name | Description |
|---|
| URL | /grade | | HTTP Method | POST | | Body Parameters | | Parameter | Description |
|---|
| id | Grade ID. | | name | Grade name. | | description | Description of grade. |
| | Sample Response | | Code Block |
|---|
| {
"id": "apiTestGrade",
"name": "API Test Grade",
"description": "This is a grade created by API."
} |
|
|
| 2 | | Anchor |
|---|
| Assign user to grade |
|---|
| Assign user to grade |
|---|
| Assign user to grade
| | Panel |
|---|
| borderColor | black |
|---|
| bgColor | #fbfff5 |
|---|
| borderStyle | solid |
|---|
| Assign a Joget user to a grade. |
Name | Description |
|---|
| URL | /grade/assignUser/{grade}/{username} | | HTTP Method | POST | | Path Parameters | | Parameter | Description |
|---|
| grade | Grade ID. | | username | Username of Joget user. |
| | Sample Response | | Code Block |
|---|
| {
"userId": "cat",
"startDate": null,
"endDate": null,
"employeeCode": "",
"gradeId": "apiTestGrade",
"departmentId": null,
"organizationId": "ORG-001"
} |
|
|
| 3 | | | Panel |
|---|
| borderColor | black |
|---|
| bgColor | #fbfff5 |
|---|
| borderStyle | solid |
|---|
| Delete a grade via grade ID. |
Name | Description |
|---|
| URL | /grade/{id} | | HTTP Method | DELETE | | Path Parameters | | Parameter | Description |
|---|
| id | Grade ID. |
| | Sample Response | | Code Block |
|---|
| {
"date": "Wed Aug 28 15:43:58 SGT 2019",
"code": "200",
"message": "Successful operation"
} |
|
|
| 34 | | | Panel |
|---|
| borderColor | black |
|---|
| bgColor | #fbfff5 |
|---|
| borderStyle | solid |
|---|
| Gets all grades from all organizations by default. Able to filter or sort the returned results via parameters. |
Name | Description |
|---|
| URL | /grade/find | | HTTP Method | GET | | Query String Parameters | | Parameter | Description |
|---|
| nameFilter | Filters the response via grade ID. | | organizationId | Filter grades that belong to an organization, via organization ID. | | sort | Grade 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 | | Code Block |
|---|
| [
{
"id": "G-001",
"name": "Board Members",
"description": ""
},
{
"id": "G-002",
"name": "Managers",
"description": ""
},
.....
] |
|
|
| 45 | | Anchor |
|---|
| Get grade by ID |
|---|
| Get grade by ID |
|---|
| Get grade by ID
| | Panel |
|---|
| borderColor | black |
|---|
| bgColor | #fbfff5 |
|---|
| borderStyle | solid |
|---|
| Get details of a grade via grade ID. |
Name | Description |
|---|
| URL | /grade/{id} | | HTTP Method | GET | | Path Parameters | | Parameter | Description |
|---|
| id | Grade ID. |
| | Sample Response | | Code Block |
|---|
| {
"id": "G-001",
"name": "Board Members",
"description": ""
} |
|
|
| 6 | | Anchor |
|---|
| Unassign user from grade |
|---|
| Unassign user from grade |
|---|
| Unassign user from grade
| | Panel |
|---|
| borderColor | black |
|---|
| bgColor | #fbfff5 |
|---|
| borderStyle | solid |
|---|
| Unassign a Joget user from a grade. |
Name | Description |
|---|
| URL | /grade/unassignUser/{grade}/{username} | | HTTP Method | DELETE | | Path Parameters | | Parameter | Description |
|---|
| grade | Grade ID. | | username | Username of Joget user. |
| | Sample Response | | Code Block |
|---|
| {
"date": "Thu Dec 05 03:29:56 SGT 2019",
"code": "200",
"message": "Successful operation"
} |
|
|
| 57 | | | Panel |
|---|
| borderColor | black |
|---|
| bgColor | #fbfff5 |
|---|
| borderStyle | solid |
|---|
| Update the details of a grade. |
Name | Description |
|---|
| URL | /grade | | HTTP Method | PUT | | Body Parameters | | Parameter | Description |
|---|
| id | Grade ID. | | name | Grade name. | | description | Description of grade. |
| | Sample Response | | Code Block |
|---|
| {
"id": "apiTestGrade",
"name": "API Test Grade",
"description": "This grade is updated via API."
} |
|
|