From ef63849ccc60124744cd03fb667fcb0e2c05ffea Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 12 Dec 2017 22:31:10 +0100 Subject: [PATCH] fix: api.core.Request (replaced 'rename' by 'ren' in configuration) --- build/api/core/Request.php | 1 - config/modules.json | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/build/api/core/Request.php b/build/api/core/Request.php index eb8187d..ea2a4c0 100755 --- a/build/api/core/Request.php +++ b/build/api/core/Request.php @@ -54,7 +54,6 @@ * ---------------------------------------------------------*/ private function buildRequestObject($uri=null, $params=null, $forced_method=null){ - /* (1) Initialisation ---------------------------------------------------------*/ /* (1) Erreur par défaut */ diff --git a/config/modules.json b/config/modules.json index b649925..d863b6e 100755 --- a/config/modules.json +++ b/config/modules.json @@ -3,7 +3,7 @@ "des": "Returns the API documentation", "per": [], "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", "per": [["admin"]], "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 }, "password": { "des": "The new administrator passowrd", "typ": "text", "opt": true } } @@ -33,7 +33,7 @@ "des": "Deletes an administrator", "per": [["admin"]], "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", "per": [["admin"]], "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.", "per": [["admin"]], "par": { - "URL0": { "des": "Name of the project to release", "typ": "alphanumeric", "rename": "project", "opt": true, "def": "self" }, - "URL1": { "des": "Step to run, if not given, all steps will be run", "typ": "id", "rename": "step", "opt": true } + "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 } } }