|
@@ -2419,6 +2419,9 @@ class PHP_CRUD_API {
|
2419
|
2419
|
echo '"200":{';
|
2420
|
2420
|
echo '"description":"An array of '.$table['name'].'",';
|
2421
|
2421
|
echo '"schema":{';
|
|
2422
|
+ echo '"type": "object",';
|
|
2423
|
+ echo '"properties": {';
|
|
2424
|
+ echo '"'.$table['name'].'": {';
|
2422
|
2425
|
echo '"type":"array",';
|
2423
|
2426
|
echo '"items":{';
|
2424
|
2427
|
echo '"type": "object",';
|
|
@@ -2451,6 +2454,8 @@ class PHP_CRUD_API {
|
2451
|
2454
|
}
|
2452
|
2455
|
echo '}'; //properties
|
2453
|
2456
|
echo '}'; //items
|
|
2457
|
+ echo '}'; //table
|
|
2458
|
+ echo '}'; //properties
|
2454
|
2459
|
echo '}'; //schema
|
2455
|
2460
|
echo '}'; //200
|
2456
|
2461
|
echo '}'; //responses
|