[config.modules] added 'cas' permissions for 'department.version' and 'professor'
This commit is contained in:
parent
ec6a89233f
commit
daddb8ebcf
|
@ -112,7 +112,7 @@
|
|||
"version":{
|
||||
"GET": {
|
||||
"des": "Get the list of the versions of the department",
|
||||
"per": [],
|
||||
"per": [["cas_admin"]],
|
||||
"par": {},
|
||||
"output": {
|
||||
"versions": { "des": "List of available versions", "typ": "array" }
|
||||
|
@ -120,7 +120,7 @@
|
|||
},
|
||||
"POST": {
|
||||
"des": "Create a backup if the name is empty, execute the backup if the name is set",
|
||||
"per": [],
|
||||
"per": [["cas_admin"]],
|
||||
"par": {},
|
||||
"output": {
|
||||
"created_id": { "des": "The id of the created version", "typ": "varchar(10,10,alphanumeric)" }
|
||||
|
@ -128,7 +128,7 @@
|
|||
},
|
||||
"PUT": {
|
||||
"des": "Switches to a older version or to current state",
|
||||
"per": [],
|
||||
"per": [["cas_admin"]],
|
||||
"par": {
|
||||
"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 }
|
||||
|
@ -139,7 +139,7 @@
|
|||
},
|
||||
"DELETE": {
|
||||
"des": "Delete a backup",
|
||||
"per": [],
|
||||
"per": [["cas_admin"]],
|
||||
"par": {
|
||||
"URL0": { "des": "The version name", "typ": "varchar(10,10,alphanumeric)", "ren": "version" }
|
||||
},
|
||||
|
@ -154,7 +154,7 @@
|
|||
|
||||
"POST": {
|
||||
"des": "Creates a new professor",
|
||||
"per": [],
|
||||
"per": [["cas_admin"]],
|
||||
"par": {
|
||||
"firstName": { "des": "Professor last name.", "typ": "varchar(2,30,alphanumeric)" },
|
||||
"lastName": { "des": "Professor first name.", "typ": "varchar(2,30,alphanumeric)" },
|
||||
|
@ -171,7 +171,7 @@
|
|||
|
||||
"GET": {
|
||||
"des": "Get one or all professors",
|
||||
"per": [],
|
||||
"per": [["cas_admin"]],
|
||||
"par": {
|
||||
"URL0": { "des": "Whether to return VH", "typ": "id", "ren": "with_vh" },
|
||||
"URL1": { "des": "Optional professor UID.", "typ": "id", "ren": "prof_id", "opt": true }
|
||||
|
@ -183,7 +183,7 @@
|
|||
|
||||
"DELETE": {
|
||||
"des": "Deletes an existing professor",
|
||||
"per": [],
|
||||
"per": [["cas_admin"]],
|
||||
"par": {
|
||||
"URL0": { "des": "Professor UID.", "typ": "id", "ren": "prof_id" }
|
||||
},
|
||||
|
@ -194,7 +194,7 @@
|
|||
|
||||
"PUT": {
|
||||
"des": "Edits an existing professor",
|
||||
"per": [],
|
||||
"per": [["cas_admin"]],
|
||||
"par": {
|
||||
"URL0": { "des": "Optional professor UID.", "typ": "id", "ren": "prof_id" },
|
||||
"firstName": { "des": "Professor last name.", "typ": "varchar(2,30,alphanumeric)", "opt": true },
|
||||
|
@ -214,7 +214,7 @@
|
|||
"filter": {
|
||||
"POST": {
|
||||
"des": "Get matching professors (only ids) for a given filter",
|
||||
"per": [],
|
||||
"per": [["cas_admin"]],
|
||||
"par": {
|
||||
"categories": { "des": "Optional category ID list", "typ": "array<id>", "opt": true },
|
||||
"formations": { "des": "Optional formation ID list", "typ": "array<id>", "opt": true },
|
||||
|
|
Loading…
Reference in New Issue