Skip to content

Commit 74bc8c2

Browse files
authored
Merge pull request #308 from xhorntail/master
Update api.php to fix API documentation
2 parents 088df6d + bbbfbb4 commit 74bc8c2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

api.php

+5
Original file line numberDiff line numberDiff line change
@@ -2419,6 +2419,9 @@ protected function swagger($settings) {
24192419
echo '"200":{';
24202420
echo '"description":"An array of '.$table['name'].'",';
24212421
echo '"schema":{';
2422+
echo '"type": "object",';
2423+
echo '"properties": {';
2424+
echo '"'.$table['name'].'": {';
24222425
echo '"type":"array",';
24232426
echo '"items":{';
24242427
echo '"type": "object",';
@@ -2451,6 +2454,8 @@ protected function swagger($settings) {
24512454
}
24522455
echo '}'; //properties
24532456
echo '}'; //items
2457+
echo '}'; //table
2458+
echo '}'; //properties
24542459
echo '}'; //schema
24552460
echo '}'; //200
24562461
echo '}'; //responses

0 commit comments

Comments
 (0)