@@ -58,19 +58,19 @@ Edit the following lines in the bottom of the file "`api.php`":
5858
5959These are all the configuration options and their default value between brackets:
6060
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 ` )
6363- "port": TCP port of the database server (defaults to driver default)
6464- "username": Username of the user connecting to the database (no default)
6565- "password": Password of the user connecting to the database (no default)
6666- "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 ` )
7171- "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 ` )
7474
7575## Compilation
7676
@@ -631,7 +631,7 @@ The above example will restrict access to the table 'license_keys' for all opera
631631
632632The above example will restrict access to the 'password' field of the 'users' table for all operations.
633633
634- 'authorization.recordHandler' => function ($operation, $tableName, $columnName ) {
634+ 'authorization.recordHandler' => function ($operation, $tableName) {
635635 return ($tableName == 'users') ? 'filter=username,neq,admin' : '';
636636 },
637637
0 commit comments