An exhaustive API for ESIEE's calendar
The base URI for the API is /api/calendar/
An activity is composed of:
- The name of the activity (mainly the subject name).
- A description containing most of the time the groups concerned, the name of the subject, the name of the teacher and the export date.
- The starting time of the avtivity.
- The ending time of the activity.
- The rooms where the avtivity take place.
This result in the following JSON template:
{
"name" : "String",
"description": "String",
"start" : "Date",
"end" : "Date",
"rooms" : [
"String"
]
}
URI | Description |
---|---|
/api/calendar/activities | Query all upcoming activities. |
/api/calendar/activities/n | Query n upcoming activities. |
/api/calendar/activities/n/s | Query n upcoming activities and skip the s first ones. |
A test is an activity and therefore has the same template.
URI | Description |
---|---|
/api/calendar/tests | Query all upcoming tests. |
/api/calendar/tests/promotion | Query all upcoming tests for this promotion. (Currently support only tests with a name of type AAA-0000:CTRL ) |
A room is only a String, which means that the result will be like:
[
"Room1",
"Room2",
"Room3",
"…"
]
URI | Description |
---|---|
/api/calendar/rooms | Query all rooms that are currently free. |
/api/calendar/rooms/time | Query all rooms that are free at time. |