๐ Textbooks
{typeSegment}: see path segments.
Digital textbooksโ
Textbooks of a user. modeDistribution: "1" lists the distribution of a class (teacher side).
POST /{typeSegment}/{id}/manuelsNumeriques.awp?verbe=get&v=8.1.0
data={
"codeClasse": "", // Optional
"modeDistribution": "1", // Optional, teacher side
"codeMatiere": "", // With modeDistribution
"showAll": false // With modeDistribution
}
Accounts: Student (E), Family (1ยท2), Teacher (P), Staff (A).
Response
{
"code": 200,
"message": "",
"data": [
{
"idRessource": 0, // Textbook id
"libelle": "", // Label
"url": "",
"urlCouverture": "", // Cover URL
"urlTelechargement": "", // Download URL
"affecte": false, // Assigned
"editeur": "", // Publisher
"ogec": "", // School code
"disciplines": "", // optional; Subjects
"eleves": [ // optional
{
"affecte": false, // Assigned
"id": 0,
"nom": ""
}
]
}
]
}
Assign a textbook to studentsโ
POST /{typeSegment}/{id}/manuelsNumeriques.awp?verbe=put&v=8.1.0
data={
"target": "eleves",
"codeClasse": "4A",
"modeDistribution": "1",
"codeMatiere": "", // Optional
"manuel": {
"idRessource": 0, // Textbook id
"libelle": "", // Label
"url": "",
"urlCouverture": "", // Cover URL
"urlTelechargement": "", // Download URL
"affecte": false, // Assigned
"editeur": "", // Publisher
"ogec": "", // School code
"disciplines": "", // optional; Subjects
"eleves": [ // optional
{
"affecte": false, // Assigned
"id": 0,
"nom": ""
}
]
}
}
Accounts: Teacher (P), Staff (A). Host apip.
Response
{
"code": 200,
"message": ""
}
Open an external link through single sign-onโ
Textbooks and some links are served by the API host and redirect to a publisher site with a CAS ticket. The app strips the host from the link, posts to the remaining path with retourJson=1 (plus any extra parameters of the link) and opens urlRedirect.
POST /{linkPath}.awp?retourJson=1&v=8.1.0
data={}
Accounts: Student (E), Family (1ยท2), Teacher (P), Staff (A).
Response
{
"code": 200,
"message": "",
"data": {
"urlRedirect": "https://โฆ" // Address to open
}
}
Voltaire resourcesโ
Resources of the Projet Voltaire. Returned as-is.
POST /projetVoltaire/{id}/ressources.awp?verbe=get&v=8.1.0
data={}
Accounts: Student (E), Family (1ยท2), Teacher (P), Staff (A).
Response
{
"code": 200,
"message": "",
"data": {}
}