2018-02-17 17:18:58 +00:00
|
|
|
{
|
2018-02-17 18:01:17 +00:00
|
|
|
"GET": {
|
|
|
|
"des": "Returns the API documentation",
|
|
|
|
"per": [],
|
|
|
|
"par": {
|
|
|
|
"URL0": { "des": "Method name", "typ": "varchar(1,30)", "ren": "method_name", "opt": true, "def": null }
|
|
|
|
}
|
|
|
|
},
|
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-03 14:50:11 +00:00
|
|
|
"par": {},
|
|
|
|
"opt": { "download": true }
|
2018-03-02 08:27:58 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"POST": {
|
|
|
|
"des": "Login if not already authenticated",
|
|
|
|
"per": [],
|
|
|
|
"par": {}
|
|
|
|
},
|
|
|
|
|
|
|
|
"PUT": {
|
|
|
|
"des": "Check if authenticated",
|
|
|
|
"per": [],
|
|
|
|
"par": {}
|
|
|
|
},
|
|
|
|
|
|
|
|
"DELETE": {
|
|
|
|
"des": "Logout",
|
|
|
|
"per": [],
|
|
|
|
"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",
|
|
|
|
"per": [],
|
|
|
|
"par": {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-03-02 08:27:58 +00:00
|
|
|
"professor":{
|
2018-03-01 16:45:40 +00:00
|
|
|
|
|
|
|
"POST": {
|
|
|
|
"des": "Creates a new professor",
|
|
|
|
"per": [],
|
|
|
|
"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" },
|
|
|
|
"initials": { "des": "Professor initials", "typ": "varchar(2,2,letters)" },
|
|
|
|
"isAdmin": { "des": "Whether professor is an admin", "typ": "boolean" },
|
|
|
|
"casLogin": { "des": "Optional CAS username", "typ": "varchar(6,10,letters)", "opt": true }
|
|
|
|
},
|
|
|
|
"out": {
|
|
|
|
"created_uid": { "des": "Created professor UID", "typ": "id" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"GET": {
|
|
|
|
"des": "Get one or all professors",
|
|
|
|
"per": [],
|
|
|
|
"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",
|
|
|
|
"per": [],
|
|
|
|
"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",
|
|
|
|
"per": [],
|
|
|
|
"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 },
|
|
|
|
"initials": { "des": "Professor initials", "typ": "varchar(2,2,letters)", "opt": true },
|
|
|
|
"isAdmin": { "des": "Whether professor is an admin", "typ": "boolean", "opt": true },
|
|
|
|
"casLogin": { "des": "Optional CAS username", "typ": "varchar(6,10,letters)", "opt": true }
|
|
|
|
},
|
|
|
|
"out": {
|
|
|
|
"updated": { "des": "Whether the professor has been updated", "typ": "boolean" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2018-03-01 16:45:40 +00:00
|
|
|
|
2018-03-02 08:27:58 +00:00
|
|
|
"stats": {
|
2018-02-27 16:22:08 +00:00
|
|
|
"GET":{
|
|
|
|
"des": "Get statistics of the professor",
|
|
|
|
"per": [],
|
|
|
|
"par":{
|
|
|
|
"URL0": {"des" : "Id of the professor", "typ": "id", "ren": "idProf", "opt" : false}
|
|
|
|
}
|
|
|
|
}
|
2018-03-05 10:58:44 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"filter": {
|
|
|
|
"POST": {
|
|
|
|
"des": "Get matching professors (only ids) for a given filter",
|
|
|
|
"per": [],
|
|
|
|
"par": {
|
|
|
|
"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-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",
|
|
|
|
"per": [],
|
|
|
|
"par": {
|
|
|
|
"code": { "des": "UE code.", "typ": "varchar(2,30,alphanumeric)" },
|
|
|
|
"label": { "des": "UE label", "typ": "varchar(2,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", "typ": "id", "opt": true }
|
|
|
|
},
|
|
|
|
"out": {
|
|
|
|
"created_code": { "des": "Created UE code", "typ": "varchar(2,30,alphanumeric)" }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
"GET": {
|
|
|
|
"des": "Get one or all UE",
|
|
|
|
"per": [],
|
|
|
|
"par": {
|
|
|
|
"URL0": { "des": "Optional UE code.", "typ": "varchar(2,30,alphanumeric)", "ren": "code", "opt": true }
|
|
|
|
},
|
|
|
|
"out": {
|
|
|
|
"ues": { "des": "UE list", "typ": "array" }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
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",
|
|
|
|
"per": [],
|
|
|
|
"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": {
|
|
|
|
"des" : "Get all data about a professor category",
|
|
|
|
"per": [],
|
|
|
|
"par": {
|
|
|
|
"URL0":{"des" : "Id of the category", "typ": "id", "ren": "idCat", "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
|
|
|
}
|