2018-02-17 17:18:58 +00:00
|
|
|
{
|
2018-03-15 18:17:28 +00:00
|
|
|
|
|
|
|
|
2018-03-05 18:35:35 +00:00
|
|
|
"POST": {
|
2018-02-17 18:01:17 +00:00
|
|
|
"des": "Returns the API documentation",
|
|
|
|
"per": [],
|
|
|
|
"par": {
|
2018-03-05 18:35:35 +00:00
|
|
|
"URL0": { "des": "Method name", "typ": "varchar(1,30)", "ren": "method_name", "opt": true, "def": null },
|
|
|
|
"mixed": { "des": "mixed type", "typ": "mixed", "opt": true },
|
|
|
|
"id": { "des": "id type", "typ": "id", "opt": true },
|
|
|
|
"text": { "des": "text type", "typ": "text", "opt": true },
|
|
|
|
"mail": { "des": "mail type", "typ": "mail", "opt": true },
|
|
|
|
"alphanumeric": { "des": "alphanumeric type", "typ": "alphanumeric", "opt": true },
|
|
|
|
"letters": { "des": "letters type", "typ": "letters", "opt": true },
|
|
|
|
"array": { "des": "array type", "typ": "array", "opt": true },
|
|
|
|
"array_id": { "des": "array<id> type", "typ": "array<id>", "opt": true },
|
|
|
|
"boolean": { "des": "boolean type", "typ": "boolean", "opt": true },
|
|
|
|
"object": { "des": "object type", "typ": "object", "opt": true },
|
|
|
|
"numeric": { "des": "numeric type", "typ": "numeric", "opt": true },
|
|
|
|
"float": { "des": "float type", "typ": "float", "opt": true }
|
2018-02-17 18:01:17 +00:00
|
|
|
}
|
|
|
|
},
|
2018-02-17 17:18:58 +00:00
|
|
|
|
2018-03-02 08:27:58 +00:00
|
|
|
"cas": {
|
|
|
|
|
|
|
|
"GET": {
|
|
|
|
"des": "Authenticatation callback (used by third-party OAuth)",
|
|
|
|
"per": [],
|
2018-03-20 22:35:16 +00:00
|
|
|
"par": {
|
2018-03-20 23:41:44 +00:00
|
|
|
"URL0": { "des": "Whether to manage a popup", "typ": "id", "opt": true, "ren": "popup_mode", "def": 0 }
|
2018-03-20 22:35:16 +00:00
|
|
|
},
|
2018-03-03 14:50:11 +00:00
|
|
|
"opt": { "download": true }
|
2018-03-02 08:27:58 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"PUT": {
|
2018-03-20 22:35:16 +00:00
|
|
|
"des": "Real logout to change login",
|
|
|
|
"per": [["cas_user"]],
|
2018-03-02 08:27:58 +00:00
|
|
|
"par": {}
|
|
|
|
},
|
|
|
|
|
|
|
|
"DELETE": {
|
|
|
|
"des": "Logout",
|
2018-03-20 22:35:16 +00:00
|
|
|
"per": [["cas_user"]],
|
2018-03-02 08:27:58 +00:00
|
|
|
"par": {}
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
2018-02-17 18:01:17 +00:00
|
|
|
"release": {
|
|
|
|
|
|
|
|
"GET": {
|
|
|
|
|
|
|
|
"des": "Pulls project from git branch.",
|
2018-03-03 15:37:54 +00:00
|
|
|
"per": [[]],
|
2018-02-17 18:01:17 +00:00
|
|
|
"par": {
|
|
|
|
"URL0": { "des": "Name of the project to release", "typ": "alphanumeric", "ren": "project", "opt": true, "def": "self" },
|
|
|
|
"URL1": { "des": "Step to run, if not given, all steps will be run", "typ": "id", "ren": "step", "opt": true }
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-03-02 08:27:58 +00:00
|
|
|
"excel":{
|
2018-02-20 00:31:19 +00:00
|
|
|
"POST": {
|
|
|
|
"des": "Import data from an Excel file",
|
2018-03-20 22:35:16 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-02-20 00:31:19 +00:00
|
|
|
"par": {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-03-15 16:38:06 +00:00
|
|
|
"department":{
|
2018-03-15 11:02:28 +00:00
|
|
|
|
2018-03-20 10:47:54 +00:00
|
|
|
"GET": {
|
|
|
|
"des": "Get one or all departments",
|
|
|
|
"per": [["cas_user"]],
|
|
|
|
"par": {
|
|
|
|
"URL0": { "des": "Optional department id.", "typ": "id", "ren": "id_dep", "opt": true }
|
|
|
|
},
|
|
|
|
"out": {
|
|
|
|
"departments": { "des": "department list", "typ": "array" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-03-15 11:02:28 +00:00
|
|
|
"PUT":{
|
|
|
|
"des": "Switch the user on another department database",
|
2018-03-20 22:35:16 +00:00
|
|
|
"per": [["cas_user"]],
|
2018-03-15 11:02:28 +00:00
|
|
|
"par": {
|
2018-03-15 16:38:06 +00:00
|
|
|
"URL0": {"des": "Department id", "typ": "id", "ren": "department" }
|
2018-03-17 18:07:44 +00:00
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"switched": { "des": "Whether the department has been switched", "typ": "bool" }
|
2018-03-15 11:02:28 +00:00
|
|
|
}
|
2018-03-17 18:07:44 +00:00
|
|
|
|
2018-03-15 11:02:28 +00:00
|
|
|
},
|
2018-03-05 19:30:05 +00:00
|
|
|
"errors":{
|
|
|
|
"GET": {
|
|
|
|
"des": "Get the list of incoherence of the department",
|
2018-03-20 22:35:16 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-05 19:30:05 +00:00
|
|
|
"par": {
|
|
|
|
}
|
|
|
|
}
|
2018-03-08 17:41:52 +00:00
|
|
|
},
|
|
|
|
"stats":{
|
|
|
|
"GET": {
|
2018-03-15 16:38:06 +00:00
|
|
|
"des": "Get the statistics about the department",
|
2018-03-20 22:35:16 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-08 17:41:52 +00:00
|
|
|
"par": {
|
|
|
|
}
|
|
|
|
}
|
2018-03-15 15:47:22 +00:00
|
|
|
},
|
2018-03-17 13:34:16 +00:00
|
|
|
"version":{
|
2018-03-15 15:47:22 +00:00
|
|
|
"GET": {
|
2018-03-17 13:34:16 +00:00
|
|
|
"des": "Get the list of the versions of the department",
|
2018-03-20 23:59:51 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-17 13:34:16 +00:00
|
|
|
"par": {},
|
|
|
|
"output": {
|
|
|
|
"versions": { "des": "List of available versions", "typ": "array" }
|
2018-03-15 15:47:22 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"POST": {
|
|
|
|
"des": "Create a backup if the name is empty, execute the backup if the name is set",
|
2018-03-20 23:59:51 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-17 13:34:16 +00:00
|
|
|
"par": {},
|
|
|
|
"output": {
|
|
|
|
"created_id": { "des": "The id of the created version", "typ": "varchar(10,10,alphanumeric)" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"PUT": {
|
|
|
|
"des": "Switches to a older version or to current state",
|
2018-03-20 23:59:51 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-15 15:47:22 +00:00
|
|
|
"par": {
|
2018-03-17 13:34:16 +00:00
|
|
|
"URL0": { "des": "0 to preview, 1 to apply", "typ": "id", "ren": "apply" },
|
|
|
|
"URL1": { "des": "The version name, current state if ommited", "typ": "varchar(10,10,alphanumeric)", "ren": "version", "opt": true }
|
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"updated": { "des": "Whether the version has been switched|applied", "typ": "bool" }
|
2018-03-16 19:40:04 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"DELETE": {
|
|
|
|
"des": "Delete a backup",
|
2018-03-20 23:59:51 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-16 19:40:04 +00:00
|
|
|
"par": {
|
2018-03-17 13:34:16 +00:00
|
|
|
"URL0": { "des": "The version name", "typ": "varchar(10,10,alphanumeric)", "ren": "version" }
|
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"deleted": { "des": "Whether the version has been deleted", "typ": "bool" }
|
2018-03-15 15:47:22 +00:00
|
|
|
}
|
|
|
|
}
|
2018-03-05 19:30:05 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-03-02 08:27:58 +00:00
|
|
|
"professor":{
|
2018-03-01 16:45:40 +00:00
|
|
|
|
|
|
|
"POST": {
|
|
|
|
"des": "Creates a new professor",
|
2018-03-20 23:59:51 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-01 16:45:40 +00:00
|
|
|
"par": {
|
|
|
|
"firstName": { "des": "Professor last name.", "typ": "varchar(2,30,alphanumeric)" },
|
|
|
|
"lastName": { "des": "Professor first name.", "typ": "varchar(2,30,alphanumeric)" },
|
|
|
|
"category": { "des": "Professor category UID.", "typ": "id" },
|
|
|
|
"hoursToDo": { "des": "Number of hours professor have to do", "typ": "id" },
|
2018-03-07 13:34:18 +00:00
|
|
|
"initials": { "des": "Professor initials", "typ": "varchar(2,8,letters)" },
|
2018-03-01 16:45:40 +00:00
|
|
|
"isAdmin": { "des": "Whether professor is an admin", "typ": "boolean" },
|
2018-03-07 13:34:18 +00:00
|
|
|
"casLogin": { "des": "Optional CAS username", "typ": "varchar(6,16,letters)", "opt": true }
|
2018-03-01 16:45:40 +00:00
|
|
|
},
|
|
|
|
"out": {
|
|
|
|
"created_uid": { "des": "Created professor UID", "typ": "id" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"GET": {
|
|
|
|
"des": "Get one or all professors",
|
2018-03-20 23:59:51 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-01 16:45:40 +00:00
|
|
|
"par": {
|
2018-03-04 10:58:19 +00:00
|
|
|
"URL0": { "des": "Whether to return VH", "typ": "id", "ren": "with_vh" },
|
|
|
|
"URL1": { "des": "Optional professor UID.", "typ": "id", "ren": "prof_id", "opt": true }
|
2018-03-01 16:45:40 +00:00
|
|
|
},
|
|
|
|
"out": {
|
|
|
|
"professors": { "des": "Teacher list", "typ": "array" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-03-01 17:07:32 +00:00
|
|
|
"DELETE": {
|
|
|
|
"des": "Deletes an existing professor",
|
2018-03-20 23:59:51 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-01 17:07:32 +00:00
|
|
|
"par": {
|
|
|
|
"URL0": { "des": "Professor UID.", "typ": "id", "ren": "prof_id" }
|
|
|
|
},
|
|
|
|
"out": {
|
|
|
|
"deleted": { "des": "Whether it has been deleted", "typ": "boolean" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-03-01 17:25:21 +00:00
|
|
|
"PUT": {
|
|
|
|
"des": "Edits an existing professor",
|
2018-03-20 23:59:51 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-01 17:25:21 +00:00
|
|
|
"par": {
|
|
|
|
"URL0": { "des": "Optional professor UID.", "typ": "id", "ren": "prof_id" },
|
|
|
|
"firstName": { "des": "Professor last name.", "typ": "varchar(2,30,alphanumeric)", "opt": true },
|
|
|
|
"lastName": { "des": "Professor first name.", "typ": "varchar(2,30,alphanumeric)", "opt": true },
|
|
|
|
"category": { "des": "Professor category UID.", "typ": "id", "opt": true },
|
|
|
|
"hoursToDo": { "des": "Number of hours professor have to do", "typ": "id", "opt": true },
|
2018-03-08 12:58:30 +00:00
|
|
|
"initials": { "des": "Professor initials", "typ": "varchar(2,8,letters)", "opt": true },
|
2018-03-01 17:25:21 +00:00
|
|
|
"isAdmin": { "des": "Whether professor is an admin", "typ": "boolean", "opt": true },
|
2018-03-13 10:13:03 +00:00
|
|
|
"casLogin": { "des": "Optional CAS username", "typ": "varchar(6,16,letters)", "opt": true },
|
|
|
|
"remCas": { "des": "Unset CAS username", "typ": "boolean", "def": false, "opt": true }
|
2018-03-01 17:25:21 +00:00
|
|
|
},
|
|
|
|
"out": {
|
|
|
|
"updated": { "des": "Whether the professor has been updated", "typ": "boolean" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-03-05 10:58:44 +00:00
|
|
|
"filter": {
|
|
|
|
"POST": {
|
2018-03-05 16:35:20 +00:00
|
|
|
"des": "Get matching professors (only ids) for a given filter",
|
2018-03-20 23:59:51 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-05 16:35:20 +00:00
|
|
|
"par": {
|
2018-03-08 17:13:07 +00:00
|
|
|
"categories": { "des": "Optional category ID list", "typ": "array<id>", "opt": true },
|
2018-03-05 16:35:20 +00:00
|
|
|
"formations": { "des": "Optional formation ID list", "typ": "array<id>", "opt": true },
|
|
|
|
"ues": { "des": "Optional UE code list", "typ": "array<varchar(2,30,alphanumeric)>", "opt": true }
|
|
|
|
},
|
|
|
|
"out": {
|
|
|
|
"matches": { "des": "Matching professor UID(s)", "typ": "array<id>" }
|
|
|
|
}
|
2018-03-05 10:58:44 +00:00
|
|
|
}
|
2018-03-21 13:43:47 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"pdf": {
|
|
|
|
|
|
|
|
"GET": {
|
|
|
|
"des": "Get a professor's fiche",
|
|
|
|
"per": [["cas_admin"]],
|
|
|
|
"par": {
|
|
|
|
"URL0": { "des": "Optional professor UID.", "typ": "id", "ren": "prof_id" }
|
|
|
|
},
|
|
|
|
"opt": { "download": true }
|
|
|
|
}
|
|
|
|
|
2018-02-27 16:22:08 +00:00
|
|
|
}
|
2018-03-01 16:45:40 +00:00
|
|
|
|
|
|
|
|
2018-03-05 09:39:43 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"ue":{
|
|
|
|
|
|
|
|
"POST": {
|
|
|
|
"des": "Creates a new UE",
|
2018-03-20 22:35:16 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-05 09:39:43 +00:00
|
|
|
"par": {
|
2018-03-12 09:43:08 +00:00
|
|
|
"code": { "des": "UE code.", "typ": "varchar(4,20,alphanumeric)" },
|
|
|
|
"label": { "des": "UE label", "typ": "varchar(4,30,alphanumeric)" },
|
|
|
|
"required": { "des": "If UE is required", "typ": "bool" },
|
|
|
|
"volumeCours": { "des": "Number of course hours for UE", "typ": "float" },
|
|
|
|
"volumeTD": { "des": "Number of TD hours for UE", "typ": "float" },
|
|
|
|
"volumeTP": { "des": "Number of TP hours for UE", "typ": "float" },
|
|
|
|
"disabled": { "des": "Whether UE is disabled", "typ": "boolean" },
|
|
|
|
"defaultFormation": { "des": "UID for optional default formation (-1 if none)", "typ": "int", "opt": true, "def": -1 }
|
2018-03-05 09:39:43 +00:00
|
|
|
},
|
|
|
|
"out": {
|
2018-03-11 18:34:11 +00:00
|
|
|
"created_code": { "des": "Created UE code", "typ": "varchar(4,20,alphanumeric)" }
|
2018-03-05 09:39:43 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"GET": {
|
|
|
|
"des": "Get one or all UE",
|
2018-03-20 22:35:16 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-05 09:39:43 +00:00
|
|
|
"par": {
|
2018-03-11 18:34:11 +00:00
|
|
|
"URL0": { "des": "Optional UE code.", "typ": "varchar(4,20,alphanumeric)", "ren": "code", "opt": true }
|
2018-03-05 09:39:43 +00:00
|
|
|
},
|
|
|
|
"out": {
|
|
|
|
"ues": { "des": "UE list", "typ": "array" }
|
|
|
|
}
|
2018-03-11 17:13:41 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
"DELETE": {
|
|
|
|
"des": "Deletes an existing UE",
|
2018-03-20 22:35:16 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-11 17:13:41 +00:00
|
|
|
"par": {
|
|
|
|
"URL0": { "des": "UE code.", "typ": "varchar(4,20,alphanumeric)", "ren": "code" }
|
|
|
|
},
|
|
|
|
"out": {
|
|
|
|
"deleted": { "des": "Whether it has been deleted", "typ": "boolean" }
|
|
|
|
}
|
2018-03-11 18:34:11 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"PUT": {
|
|
|
|
"des": "Edits an existing UE",
|
2018-03-20 22:35:16 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-11 18:34:11 +00:00
|
|
|
"par": {
|
|
|
|
"URL0": { "des": "UE code.", "typ": "varchar(4,20,alphanumeric)", "ren": "code" },
|
2018-03-19 22:32:09 +00:00
|
|
|
"new_code": { "des": "UE new code", "typ": "varchar(4,20,alphanumeric)", "opt": true },
|
2018-03-11 18:34:11 +00:00
|
|
|
"label": { "des": "UE label", "typ": "varchar(4,30,alphanumeric)", "opt": true },
|
|
|
|
"required": { "des": "If UE is required", "typ": "bool", "opt": true },
|
|
|
|
"volumeCours": { "des": "Number of course hours for UE", "typ": "float", "opt": true },
|
|
|
|
"volumeTD": { "des": "Number of TD hours for UE", "typ": "float", "opt": true },
|
|
|
|
"volumeTP": { "des": "Number of TP hours for UE", "typ": "float", "opt": true },
|
|
|
|
"disabled": { "des": "Whether UE is disabled", "typ": "boolean", "opt": true },
|
|
|
|
"defaultFormation": { "des": "UID for optional default formation (-1 for none)", "typ": "int", "opt": true }
|
|
|
|
},
|
|
|
|
"out": {
|
|
|
|
"updated": { "des": "Whether the UE has been updated", "typ": "boolean" }
|
|
|
|
}
|
2018-03-14 14:28:41 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"cours": {
|
|
|
|
|
2018-03-15 18:17:28 +00:00
|
|
|
"POST": {
|
|
|
|
"des" : "Creates a new Cours for an UE",
|
2018-03-20 22:35:16 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-15 18:17:28 +00:00
|
|
|
"par": {
|
|
|
|
"code": { "des": "Code of the UE", "typ": "varchar(4,20,alphanumeric)" },
|
|
|
|
"idProf": { "des": "Id of the professor", "typ": "id", "opt": true },
|
|
|
|
"volume": { "des": "Number of hours for Cours", "typ": "id", "opt": true, "def": 0 },
|
|
|
|
"formations": { "des": "List of formations (ids)", "typ": "array<id>", "opt": true, "def": [] }
|
|
|
|
},
|
|
|
|
"output": {
|
2018-05-08 12:45:26 +00:00
|
|
|
"created_id" : { "des": "The id of the created Cours", "typ": "id" },
|
|
|
|
"formations" : { "des": "The ids of the linked formations", "typ": "array<id>" }
|
2018-03-15 18:17:28 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-03-14 14:28:41 +00:00
|
|
|
"GET": {
|
|
|
|
"des" : "Get all cours data about a given UE",
|
2018-03-20 22:35:16 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-14 14:28:41 +00:00
|
|
|
"par": {
|
|
|
|
"URL0": { "des": "Code of the UE", "typ": "varchar(4,20,alphanumeric)", "ren": "code" }
|
|
|
|
}
|
2018-03-15 18:17:28 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"PUT": {
|
|
|
|
"des" : "Updates an existing Cours",
|
2018-03-20 22:35:16 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-15 18:17:28 +00:00
|
|
|
"par": {
|
|
|
|
"URL0": { "des": "Id of the Cours", "typ": "id", "ren": "idCours" },
|
|
|
|
"idProf": { "des": "Id of the professor (-1 to unset)", "typ": "int", "opt": true },
|
|
|
|
"volume": { "des": "Number of hours for Cours", "typ": "float", "opt": true },
|
|
|
|
"add_form": { "des": "Id of formations to add", "typ": "array<id>", "opt": true, "def": [] },
|
|
|
|
"rem_form": { "des": "Id of formations to remove", "typ": "array<id>", "opt": true, "def": [] }
|
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"updated" : { "des": "Whether it has been updated", "typ": "bool" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"DELETE": {
|
|
|
|
"des" : "Deletes an existing Cours",
|
2018-03-20 22:35:16 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-15 18:17:28 +00:00
|
|
|
"par": {
|
|
|
|
"URL0": { "des": "Id of the Cours", "typ": "id", "ren": "idCours" }
|
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"deleted" : { "des": "Whether it has been deleted", "typ": "bool" }
|
|
|
|
}
|
2018-03-14 14:28:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
"td": {
|
|
|
|
|
2018-03-15 18:25:42 +00:00
|
|
|
"POST": {
|
|
|
|
"des" : "Creates a new TD for an UE",
|
2018-03-20 22:35:16 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-15 18:25:42 +00:00
|
|
|
"par": {
|
|
|
|
"code": { "des": "Code of the UE", "typ": "varchar(4,20,alphanumeric)" },
|
|
|
|
"idProf": { "des": "Id of the professor", "typ": "id", "opt": true },
|
|
|
|
"volume": { "des": "Number of hours for TD", "typ": "id", "opt": true, "def": 0 },
|
|
|
|
"formations": { "des": "List of formations (ids)", "typ": "array<id>", "opt": true, "def": [] }
|
|
|
|
},
|
|
|
|
"output": {
|
2018-05-08 12:45:26 +00:00
|
|
|
"created_id" : { "des": "The id of the created TD", "typ": "id" },
|
|
|
|
"formations" : { "des": "The ids of the linked formations", "typ": "array<id>" }
|
2018-03-15 18:25:42 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-03-14 14:28:41 +00:00
|
|
|
"GET": {
|
|
|
|
"des" : "Get all TD data about a given UE",
|
2018-03-20 22:35:16 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-14 14:28:41 +00:00
|
|
|
"par": {
|
|
|
|
"URL0": { "des": "Code of the UE", "typ": "varchar(4,20,alphanumeric)", "ren": "code" }
|
|
|
|
}
|
2018-03-15 18:25:42 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"PUT": {
|
|
|
|
"des" : "Updates an existing TD",
|
2018-03-20 22:35:16 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-15 18:25:42 +00:00
|
|
|
"par": {
|
|
|
|
"URL0": { "des": "Id of the TD", "typ": "id", "ren": "idTD" },
|
|
|
|
"idProf": { "des": "Id of the professor (-1 to unset)", "typ": "int", "opt": true },
|
|
|
|
"volume": { "des": "Number of hours for TD", "typ": "float", "opt": true },
|
|
|
|
"add_form": { "des": "Id of formations to add", "typ": "array<id>", "opt": true, "def": [] },
|
|
|
|
"rem_form": { "des": "Id of formations to remove", "typ": "array<id>", "opt": true, "def": [] }
|
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"updated" : { "des": "Whether it has been updated", "typ": "bool" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"DELETE": {
|
|
|
|
"des" : "Deletes an existing TD",
|
2018-03-20 22:35:16 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-15 18:25:42 +00:00
|
|
|
"par": {
|
|
|
|
"URL0": { "des": "Id of the TD", "typ": "id", "ren": "idTD" }
|
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"deleted" : { "des": "Whether it has been deleted", "typ": "bool" }
|
|
|
|
}
|
2018-03-14 14:28:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
"tp": {
|
2018-03-05 09:39:43 +00:00
|
|
|
|
2018-03-15 18:29:00 +00:00
|
|
|
"POST": {
|
|
|
|
"des" : "Creates a new TP for an UE",
|
2018-03-20 22:35:16 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-15 18:29:00 +00:00
|
|
|
"par": {
|
|
|
|
"code": { "des": "Code of the UE", "typ": "varchar(4,20,alphanumeric)" },
|
|
|
|
"idProf": { "des": "Id of the professor", "typ": "id", "opt": true },
|
|
|
|
"volume": { "des": "Number of hours for TP", "typ": "id", "opt": true, "def": 0 },
|
|
|
|
"formations": { "des": "List of formations (ids)", "typ": "array<id>", "opt": true, "def": [] }
|
|
|
|
},
|
|
|
|
"output": {
|
2018-05-08 12:45:26 +00:00
|
|
|
"created_id" : { "des": "The id of the created TP", "typ": "id" },
|
|
|
|
"formations" : { "des": "The ids of the linked formations", "typ": "array<id>" }
|
2018-03-15 18:29:00 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-03-14 14:28:41 +00:00
|
|
|
"GET": {
|
|
|
|
"des" : "Get all TP data about a given UE",
|
2018-03-20 22:35:16 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-14 14:28:41 +00:00
|
|
|
"par": {
|
|
|
|
"URL0": { "des": "Code of the UE", "typ": "varchar(4,20,alphanumeric)", "ren": "code" }
|
|
|
|
}
|
2018-03-15 18:29:00 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"PUT": {
|
|
|
|
"des" : "Updates an existing TP",
|
2018-03-20 22:35:16 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-15 18:29:00 +00:00
|
|
|
"par": {
|
|
|
|
"URL0": { "des": "Id of the TP", "typ": "id", "ren": "idTP" },
|
|
|
|
"idProf": { "des": "Id of the professor (-1 to unset)", "typ": "int", "opt": true },
|
|
|
|
"volume": { "des": "Number of hours for TP", "typ": "float", "opt": true },
|
|
|
|
"add_form": { "des": "Id of formations to add", "typ": "array<id>", "opt": true, "def": [] },
|
|
|
|
"rem_form": { "des": "Id of formations to remove", "typ": "array<id>", "opt": true, "def": [] }
|
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"updated" : { "des": "Whether it has been updated", "typ": "bool" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"DELETE": {
|
|
|
|
"des" : "Deletes an existing TP",
|
2018-03-20 22:35:16 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-15 18:29:00 +00:00
|
|
|
"par": {
|
|
|
|
"URL0": { "des": "Id of the TP", "typ": "id", "ren": "idTP" }
|
|
|
|
},
|
|
|
|
"output": {
|
|
|
|
"deleted" : { "des": "Whether it has been deleted", "typ": "bool" }
|
|
|
|
}
|
2018-03-14 14:28:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2018-03-05 09:39:43 +00:00
|
|
|
|
2018-02-27 16:22:08 +00:00
|
|
|
},
|
|
|
|
|
2018-03-02 08:27:58 +00:00
|
|
|
"formation": {
|
2018-02-27 19:41:36 +00:00
|
|
|
"GET":{
|
|
|
|
"des": "Get all data about a formation",
|
2018-03-20 22:35:16 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-02-27 19:41:36 +00:00
|
|
|
"par": {
|
2018-03-05 10:19:32 +00:00
|
|
|
"URL0":{"des" : "Id of the formation", "typ": "id", "ren": "form_id", "opt" : true }
|
2018-03-01 15:57:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-03-02 08:27:58 +00:00
|
|
|
"category": {
|
2018-03-01 15:57:44 +00:00
|
|
|
"GET": {
|
2018-03-06 15:20:31 +00:00
|
|
|
"des" : "Get all data about a given category | all",
|
2018-03-20 22:35:16 +00:00
|
|
|
"per": [["cas_admin"]],
|
2018-03-01 15:57:44 +00:00
|
|
|
"par": {
|
2018-03-06 15:20:31 +00:00
|
|
|
"URL0": { "des": "Id of the category", "typ": "id", "ren": "cat_id", "opt": true }
|
2018-02-27 19:41:36 +00:00
|
|
|
}
|
|
|
|
}
|
2018-02-17 17:18:58 +00:00
|
|
|
}
|
2018-02-17 18:01:17 +00:00
|
|
|
}
|