LangLion Developer Wiki

⚠️ APIv2 is legacy

APIv2 is considered legacy and is no longer recommended for new integrations.

We strongly encourage you to use APIv4 for all new integrations and to migrate existing integrations where possible.

Please refer to our latest APIv4 documentation for up-to-date information and integration guidelines:

Click here to view the APIv4 example documentation - your own documentation is at https://[your-instance].langlion.com/api/v4/docs

List all groups - GET /api/v2/schoolClasses

Returns a list of the all groups (including archived). Groups are returned sorted by 'id' field in increasing order.

Request

1curl -G 'https://test.langlion.com/api/v2/schoolClasses' \
2--header 'Authorization: Bearer af2b3df9c671d5413fc5c38b467794782b4047705ac3...'

Response

 1{
 2    "data": {
 3        "schoolClasses": [
 4            {
 5                "id": 2,
 6                "name": "Angielski 2/2018",
 7                "description": null,
 8                "installmentSchemeGroupId": 3,
 9                "reckoningTypeName": "whole",
10                "pointSystemTypeName": "percent",
11                "startDate": "2018-01-05 00:00:00",
12                "endDate": "2020-08-03 00:00:00",
13                "minStudentLimit": 0,
14                "maxStudentLimit": 3,
15                "type": "group",
16                "schoolClassTypeName": "group",
17                "isPlanned": false,
18                "isVirtual": 0,
19                "isArchived": 0,
20                "archivedDate": null,
21                "schoolId": 1,
22                "documentTemplateId": null,
23                "createdAt": "2018-01-03 12:26:27",
24                "updatedAt": "2018-01-03 16:14:37",
25                "language": {
26                    "id": 1,
27                    "name": "Angielski",
28                    "type": 0,
29                    "color": "DDE5F6",
30                    "schoolId": 1,
31                    "createdAt": "2013-05-06 11:37:00",
32                    "updatedAt": "2013-05-06 11:37:00"
33                },
34                "level": null
35            },
36            {
37                "id": 3,
38                "name": "Angielski 3/2018",
39                "description": null,
40                "installmentSchemeGroupId": 1,
41                "reckoningTypeName": "whole",
42                "pointSystemTypeName": "percent",
43                "startDate": "2018-01-05 00:00:00",
44                "endDate": "2020-08-03 00:00:00",
45                "minStudentLimit": 0,
46                "maxStudentLimit": 0,
47                "type": "group",
48                "schoolClassTypeName": "group",
49                "isPlanned": false,
50                "isVirtual": 0,
51                "isArchived": 0,
52                "archivedDate": null,
53                "schoolId": 1,
54                "documentTemplateId": null,
55                "createdAt": "2018-01-03 12:27:23",
56                "updatedAt": "2018-01-03 16:15:01",
57                "language": {
58                    "id": 1,
59                    "name": "Angielski",
60                    "type": 0,
61                    "color": "DDE5F6",
62                    "schoolId": 1,
63                    "createdAt": "2013-05-06 11:37:00",
64                    "updatedAt": "2013-05-06 11:37:00"
65                },
66                "level": null
67            },
68            [...]

Parameters

Required
No required parameters.

Optional

  • filter - JSON filter
  • recordFrom - fetch records from
  • recordTo - fetch record up to