fix: api.core.Request (replaced 'rename' by 'ren' in configuration)

This commit is contained in:
xdrm-brackets 2017-12-12 22:31:10 +01:00
parent b1796535a3
commit ef63849ccc
2 changed files with 6 additions and 7 deletions

View File

@ -54,7 +54,6 @@
* *
---------------------------------------------------------*/ ---------------------------------------------------------*/
private function buildRequestObject($uri=null, $params=null, $forced_method=null){ private function buildRequestObject($uri=null, $params=null, $forced_method=null){
/* (1) Initialisation /* (1) Initialisation
---------------------------------------------------------*/ ---------------------------------------------------------*/
/* (1) Erreur par défaut */ /* (1) Erreur par défaut */

View File

@ -3,7 +3,7 @@
"des": "Returns the API documentation", "des": "Returns the API documentation",
"per": [], "per": [],
"par": { "par": {
"URL0": { "des": "Method name", "typ": "varchar(1,30)", "rename": "method_name", "opt": true, "def": null } "URL0": { "des": "Method name", "typ": "varchar(1,30)", "ren": "method_name", "opt": true, "def": null }
} }
}, },
@ -23,7 +23,7 @@
"des": "Updates an existing administrator's data", "des": "Updates an existing administrator's data",
"per": [["admin"]], "per": [["admin"]],
"par": { "par": {
"URL0": { "des": "The UID of the wanted administrator.", "typ": "id", "rename": "id_admin" }, "URL0": { "des": "The UID of the wanted administrator.", "typ": "id", "ren": "id_admin" },
"mail": { "des": "The new administrator email address", "typ": "mail", "opt": true }, "mail": { "des": "The new administrator email address", "typ": "mail", "opt": true },
"password": { "des": "The new administrator passowrd", "typ": "text", "opt": true } "password": { "des": "The new administrator passowrd", "typ": "text", "opt": true }
} }
@ -33,7 +33,7 @@
"des": "Deletes an administrator", "des": "Deletes an administrator",
"per": [["admin"]], "per": [["admin"]],
"par": { "par": {
"URL0": { "des": "The UID of the wanted administrator.", "typ": "id", "opt": true, "rename": "id_admin" } "URL0": { "des": "The UID of the wanted administrator.", "typ": "id", "opt": true, "ren": "id_admin" }
} }
}, },
@ -41,7 +41,7 @@
"des": "Gets an administrator | Gets all administrators if no id defined", "des": "Gets an administrator | Gets all administrators if no id defined",
"per": [["admin"]], "per": [["admin"]],
"par": { "par": {
"URL0": { "des": "The UID of the wanted administrator.", "typ": "id", "opt": true, "rename": "id_admin" } "URL0": { "des": "The UID of the wanted administrator.", "typ": "id", "opt": true, "ren": "id_admin" }
} }
} }
@ -54,8 +54,8 @@
"des": "Pulls project from git branch.", "des": "Pulls project from git branch.",
"per": [["admin"]], "per": [["admin"]],
"par": { "par": {
"URL0": { "des": "Name of the project to release", "typ": "alphanumeric", "rename": "project", "opt": true, "def": "self" }, "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", "rename": "step", "opt": true } "URL1": { "des": "Step to run, if not given, all steps will be run", "typ": "id", "ren": "step", "opt": true }
} }
} }