Merge pull request #308 from xhorntail/master

Update api.php to fix API documentation
This commit is contained in:
Maurits van der Schee 2017-10-10 11:51:32 +02:00 committed by GitHub
commit 74bc8c2c43

View file

@ -2419,6 +2419,9 @@ class PHP_CRUD_API {
echo '"200":{'; echo '"200":{';
echo '"description":"An array of '.$table['name'].'",'; echo '"description":"An array of '.$table['name'].'",';
echo '"schema":{'; echo '"schema":{';
echo '"type": "object",';
echo '"properties": {';
echo '"'.$table['name'].'": {';
echo '"type":"array",'; echo '"type":"array",';
echo '"items":{'; echo '"items":{';
echo '"type": "object",'; echo '"type": "object",';
@ -2451,6 +2454,8 @@ class PHP_CRUD_API {
} }
echo '}'; //properties echo '}'; //properties
echo '}'; //items echo '}'; //items
echo '}'; //table
echo '}'; //properties
echo '}'; //schema echo '}'; //schema
echo '}'; //200 echo '}'; //200
echo '}'; //responses echo '}'; //responses