User Online Course Activity

This end point is use for get list of course activity by employee ID

[GET] /ruangkerja/dashboard/users/:employeeID/courses/online

Information

This API contains information all assignment Online Course by User in Ruangkerja.

See also API: Course.

Headers

NameTypeExampleRequiredDescription
Authorizationstringaccess_tokenYESToken of authentication. Get from Authentication API
Acceptstringapplication/jsonYESDefines the message format that is expected by the client
Content-Typestringapplication/jsonYESDefines the message format of the request body that is sent by the client

Parameter

NameTypeRequiredLocationDescription
pageintYESqueryQuery for skip page of collection
pageSizeintYESqueryQuery for limit result data from server. Maximum value 100
employeeIDstringYESpathEmployee ID of User

Example cURL Request

curl --location --request GET 'https://api.ruangkerja.id/ruangkerja/dashboard/users/JOHNILXV3QAJJEL3/courses/online?page=1&pageSize=10' \
--header 'Authorization: access_token'

Example Success Response

{
    "status": "success",
    "message": "Success",
    "data": [
        ...,
        {
            "course": {
                "serial": "COURSE-EXAMPLE1",
                "name": "[ONLINE] Effisien Menggunakan Spreadsheet untuk Report"
            },
            "postTest": 100,
            "preTest": 100,
            "timeSpent": 873,
            "completedAt": "2022-07-22",
            "status": "completed"
        }
    ]
}

Response Body Terminology

LocationTypeDescription
data.items.*.preTestfloat (nullable)The value will be null if user not submit task/reached timeout
data.items.*.postTestfloat (nullable)The value will be null if user not submit task/reached timeout
data.items.*.completedAtstringThe value will be empty string if user not submit task/reached timeout
data.items.*.statusenum(not_started, completed, expired, failed, in_progress)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.