|
@@ -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` (default), `pgsql` or `sqlsrv`
|
|
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` (default), `Redis`, `Memcache`, `Memcached` or `NoCache`
|
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
|
|