From 7e68b19d829530488e002ac6102c2ac2e0450ff8 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Wed, 13 Dec 2017 13:01:46 +0100 Subject: [PATCH] Added api.core.Documentation (renamed 'des' to 'descriptin') --- build/api/core/Documentation.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/build/api/core/Documentation.php b/build/api/core/Documentation.php index abf7dce..93873fd 100644 --- a/build/api/core/Documentation.php +++ b/build/api/core/Documentation.php @@ -39,15 +39,18 @@ /* (1) Build uri with args */ $cfg[$method]['uri_scheme'] = self::uri_scheme($rq->get('id')['path'], $spec); - /* (2) Build human-readable permission list */ + /* (2) Rename 'des' to 'description' */ + $cfg[$method]['description'] = $cfg[$method]['des']; + unset($cfg[$method]['des']); + + /* (3) Build human-readable permission list */ $cfg[$method]['permissions'] = "accessible with:".self::permissions($spec); unset($cfg[$method]['per']); - /* (3) Build ease parameter list */ + /* (4) Build ease parameter list */ $cfg[$method]['parameters'] = self::parameters($spec); unset($cfg[$method]['par']); - } $response = new Response();