From 9bd6212f5f01e1dc0f99b24e50e9aac374c5b019 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sun, 10 Sep 2017 19:06:26 +0200 Subject: [PATCH] update api:2.2 notice -> now Request+Response class doc done --- notice/api/2.2.md | 99 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 95 insertions(+), 4 deletions(-) diff --git a/notice/api/2.2.md b/notice/api/2.2.md index 300f420..0076b7a 100644 --- a/notice/api/2.2.md +++ b/notice/api/2.2.md @@ -52,8 +52,8 @@ The aim of this package is to make your life easier working with APIs or interna Things you have to do : - implement your processes (obviously) -- implement your authentication system (cf. [AuthSystem](#3-authsysten)) -- edit the configuration file (cf. [configuration](#3---configuration)) +- implement your authentication system (cf. [AuthSystem](#1-permissions--authsystem)) +- edit the configuration file (cf. [configuration](#iii-configuration)) Things you **don't have** to do : - input type check (cf. [Checker](#4-checker)) @@ -92,8 +92,8 @@ If you want to delete the article of id `52`, you must request `article/delete` > ## **1** Setup In order to make the API work, you have to : -1. Edit the configuration file according to your needs (cf. [configuration](#3---configuration)) -2. Implement the Authentication System to manage permissions (cf. [AuthSystem](#3-authsystem)) +1. Edit the configuration file according to your needs (cf. [configuration](#iii-configuration)) +2. Implement the Authentication System to manage permissions (cf. [AuthSystem](#1-permissions--authsystem)) 3. Implement the code of the methods according to the configuration @@ -321,6 +321,97 @@ If you don't return the 'error' field, by default it is set to `new Error(Err::S > # **V.** Class documentation +> ## **1** Request + +### Attributes + +The attribute `error` will contain the current `Error` instance. + +```php + ## **2** Response + +### Attributes + +The attribute `error` will contain the current `Error` instance. + +```php + ## **4** Checker `Checker` checks the input values according to the type given in the configuration.