File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -2419,6 +2419,9 @@ protected function swagger($settings) {
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 @@ protected function swagger($settings) {
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
Original file line number Diff line number Diff line change 37
37
case 'POST ' :
38
38
$ sql = "insert into ` $ table` set $ set " ; break ;
39
39
case 'DELETE ' :
40
- $ sql = "delete ` $ table` where id= $ key " ; break ;
40
+ $ sql = "delete from ` $ table` where id= $ key " ; break ;
41
41
}
42
42
43
43
// execute SQL statement
You can’t perform that action at this time.
0 commit comments