User Learning Plan Activity
This end point is use for get list of learning plan activity by employee ID
[GET] /ruangkerja/dashboard/users/:employeeID/learning-plans
Information
This API contains information all assignment Learning Plan by User in Ruangkerja.
See also API: Learning Plan.
Headers
Name | Type | Example | Required | Description |
---|---|---|---|---|
Authorization | string | access_token | YES | Token of authentication. Get from Authentication API |
Accept | string | application/json | YES | Defines the message format that is expected by the client |
Content-Type | string | application/json | YES | Defines the message format of the request body that is sent by the client |
Parameter
Name | Type | Required | Location | Description |
---|---|---|---|---|
page | int | YES | query | Query for skip page of collection |
pageSize | int | YES | query | Query for limit result data from server. Maximum value 100 |
employeeID | string | YES | path | Employee ID of User |
Example cURL Request
curl --location --request GET 'https://api.ruangkerja.id/ruangkerja/dashboard/users/JOHNILXV3QAJJEL3/learning-plans?page=1&pageSize=10' \
--header 'Authorization: access_token'
Example Success Response
{
"status": "success",
"message": "Success",
"data": {
"currentPage": 1,
"totalItems": 100,
"totalPage": 10,
"items": [
{
"learningPlan": {
"serial": "LRPN-YFXP3P98",
"name": "[Learning Plan] Menjadi Software Engineer Profesional"
},
"avgPostTest": 80,
"avgPreTest": 100,
"numberOfCompleted": 2,
"numberOfCourses": 2,
"status": "COMPLETED"
{
"learningPlan": {
"serial": "LRPN-AJSLW15D",
"name": "[Learning Plan] Menjadi DevOps Profesional"
},
"avgPostTest": 80,
"avgPreTest": 100,
"numberOfCompleted": 2,
"numberOfCourses": 2,
"status": "COMPLETED"
}
]
}
}
Response Body Terminology
Location | Type | Description |
---|---|---|
data.items.*.avgPreTest | float64 (nullable) | The value will be null if user not submit task/reached timeout |
data.items.*.avgPostTest | float64 (nullable) | The value will be null if user not submit task/reached timeout |
data.items.*.status | enum(NOT STARTED, IN PROGRESS, COMPLETED, EXPIRED) | The status of user task |
Example Failed Response
{
"errorCode": 123,
"message": "rpc error: code = PermissionDenied desc = Token is not valid",
"detail": "rpc error: code = PermissionDenied desc = Token is not valid"
}
See also: Error Dictionary.