@@ -58,19 +58,19 @@ Edit the following lines in the bottom of the file "`api.php`":
58
58
59
59
These are all the configuration options and their default value between brackets:
60
60
61
- - "driver": " ` mysql ` " (default), " ` pgsql ` " or " ` sqlsrv ` "
62
- - "address": Hostname of the database server (" ` localhost ` " )
61
+ - "driver": ` mysql ` , ` pgsql ` or ` sqlsrv ` ( ` mysql ` )
62
+ - "address": Hostname of the database server (` localhost ` )
63
63
- "port": TCP port of the database server (defaults to driver default)
64
64
- "username": Username of the user connecting to the database (no default)
65
65
- "password": Password of the user connecting to the database (no default)
66
66
- "database": Database the connecting is made to (no default)
67
- - "middlewares": List of middlewares to load (" ` cors ` " )
68
- - "controllers": List of controllers to load (" ` records,openapi ` " )
69
- - "openApiBase": OpenAPI info (" ` {"info":{"title":"PHP-CRUD-API","version":"1.0.0"}} ` " )
70
- - "cacheType": " ` TempFile ` " (default), " ` Redis ` ", " ` Memcache ` ", " ` Memcached ` " or " ` NoCache ` "
67
+ - "middlewares": List of middlewares to load (` cors ` )
68
+ - "controllers": List of controllers to load (` records,openapi ` )
69
+ - "openApiBase": OpenAPI info (` {"info":{"title":"PHP-CRUD-API","version":"1.0.0"}} ` )
70
+ - "cacheType": ` TempFile ` , ` Redis ` , ` Memcache ` , ` Memcached ` or ` NoCache ` ( ` TempFile ` )
71
71
- "cachePath": Path/address of the cache (defaults to system's temp directory)
72
- - "cacheTime": Number of seconds the cache is valid (" ` 10 ` " )
73
- - "debug": Show errors in the "X-Debug-Info" header (" ` false ` " )
72
+ - "cacheTime": Number of seconds the cache is valid (` 10 ` )
73
+ - "debug": Show errors in the "X-Debug-Info" header (` false ` )
74
74
75
75
## Compilation
76
76
@@ -631,7 +631,7 @@ The above example will restrict access to the table 'license_keys' for all opera
631
631
632
632
The above example will restrict access to the 'password' field of the 'users' table for all operations.
633
633
634
- 'authorization.recordHandler' => function ($operation, $tableName, $columnName ) {
634
+ 'authorization.recordHandler' => function ($operation, $tableName) {
635
635
return ($tableName == 'users') ? 'filter=username,neq,admin' : '';
636
636
},
637
637
0 commit comments