@@ -31,10 +31,6 @@ There are also proof-of-concept ports of this script that only support basic RES
31
31
- PostGIS 2.0 or higher for spatial features in PostgreSQL 9.1 or higher
32
32
- SQL Server 2012 or higher (2017 for Linux support)
33
33
34
- ## Known issues
35
-
36
- - Seeing integers as strings? Make sure to enable the ` nd_pdo_mysql ` extension and disable ` pdo_mysql ` .
37
-
38
34
## Installation
39
35
40
36
This is a single file application! Upload "` api.php ` " somewhere and enjoy!
@@ -133,6 +129,7 @@ These features are new in v2 and were not included in v1:
133
129
- Error reporting in JSON with corresponding HTTP status
134
130
- Support for basic authentication and via auth provider (JWT)
135
131
- Support for basic firewall functionality
132
+ - Prevent database scraping using list limits
136
133
137
134
### Dropped features
138
135
@@ -161,7 +158,7 @@ You can enable the following middleware using the "middlewares" config parameter
161
158
- "validation": Return input validation errors for custom rules
162
159
- "sanitation": Apply input sanitation on create and update
163
160
- "multiTenancy": Restricts tenants access in a multi-tenant scenario
164
- - "pageLimits": Restricts list operations to prevent high load and scraping
161
+ - "pageLimits": Restricts list operations to prevent database scraping
165
162
- "customization": Provides handlers for request and response customization
166
163
167
164
The "middlewares" config parameter is a comma separated list of enabled middlewares.
@@ -729,7 +726,7 @@ If your tenants are identified by the "customer_id" column you can use the follo
729
726
This construct adds a filter requiring "customer_id" to be "12" to every operation (except for "create").
730
727
It also sets the column "customer_id" on "create" to "12" and removes the column from any other write operation.
731
728
732
- ### Prevent high load and scraping
729
+ ### Prevent database scraping
733
730
734
731
You may use the "pageLimits" middleware to limit the page number and the number records returned from a list operation.
735
732
If you want to allow no more than 10 pages with a maximum of 25 records each, you can specify:
0 commit comments