Skip to main content

Aflabs APIs

In order to use Aflabs APIs you need to set afLabsApiSharedSecret in System Configuration. This secret is used to authenticate requests to Aflabs APIs. You pass it as the secret query parameter.

If afLabsApiSharedSecret is not set (empty), all Aflabs endpoints will return an error indicating the feature is disabled.

Get All Group Registrations

Returns group registrations for all students that have an enrollment number set.

Request

GET https://TODO_FLOW_HOST/thirdParty/aflabs/groupRegistrations?secret={{afLabsApiSharedSecret}}

Query parameters

parametertypedescription
secretStringRequired. The shared secret configured in afLabsApiSharedSecret
semesterIdString?Optional. If provided, filters to a specific semester. Otherwise, all active semesters are used

Response

fieldtypedescription
internalIdStringEnrollment number of the student
groupRegistrationsobject[]List of group registrations for the student
groupRegistrations.subjectStringCourse short name (derived from the course number)
groupRegistrations.typeStringExecution type short name (e.g. VL, P, ...)
groupRegistrations.groupStringName of the group
info

Only students with an enrollment number and at least one group registration in the requested semesters are included in the response.

Example:

[
{
"internalId": "12345678",
"groupRegistrations": [
{
"subject": "MAT1",
"type": "VL",
"group": "Group A"
},
{
"subject": "PHY1",
"type": "P",
"group": "Group B"
}
]
}
]

Get Group Registration

Returns group registrations for a single student identified by their enrollment number.

Request

GET https://TODO_FLOW_HOST/thirdParty/aflabs/groupRegistration?secret={{afLabsApiSharedSecret}}&internalId={{internalId}}

Query parameters

parametertypedescription
secretStringRequired. The shared secret configured in afLabsApiSharedSecret
internalIdStringRequired. The enrollment number of the student
semesterIdString?Optional. If provided, filters to a specific semester. Otherwise, all active semesters are used

Response

Returns a single student object, or null if no student with the given enrollment number exists.

fieldtypedescription
internalIdStringEnrollment number (Matrikelnumber) of the student
groupRegistrationsobject[]List of group registrations for the student
groupRegistrations.subjectStringCourse short name (derived from the course number)
groupRegistrations.typeStringExecution type short name (e.g. VL, P, ...)
groupRegistrations.groupStringName of the group

Example:

{
"internalId": "12345678",
"groupRegistrations": [
{
"subject": "MAT1",
"type": "VL",
"group": "Group A"
}
]
}