Merge pull request #308 from xhorntail/master
Update api.php to fix API documentation
This commit is contained in:
commit
74bc8c2c43
1 changed files with 5 additions and 0 deletions
5
api.php
5
api.php
|
|
@ -2419,6 +2419,9 @@ class PHP_CRUD_API {
|
|||
echo '"200":{';
|
||||
echo '"description":"An array of '.$table['name'].'",';
|
||||
echo '"schema":{';
|
||||
echo '"type": "object",';
|
||||
echo '"properties": {';
|
||||
echo '"'.$table['name'].'": {';
|
||||
echo '"type":"array",';
|
||||
echo '"items":{';
|
||||
echo '"type": "object",';
|
||||
|
|
@ -2451,6 +2454,8 @@ class PHP_CRUD_API {
|
|||
}
|
||||
echo '}'; //properties
|
||||
echo '}'; //items
|
||||
echo '}'; //table
|
||||
echo '}'; //properties
|
||||
echo '}'; //schema
|
||||
echo '}'; //200
|
||||
echo '}'; //responses
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue