[config.modules] added 'cas' permissions for 'department.version' and 'professor'

This commit is contained in:
xdrm-brackets 2018-03-21 00:59:51 +01:00
parent ec6a89233f
commit daddb8ebcf
1 changed files with 9 additions and 9 deletions

View File

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