Skip to content

Commit d8e7479

Browse files
committed
Merge branch 'main' of github.com:mevdschee/php-crud-api into main
2 parents bd4997b + 7a14af1 commit d8e7479

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Maurits van der Schee
3+
Copyright (c) 2022 Maurits van der Schee
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ On list operations you may apply filters and joins.
285285
### Filters
286286

287287
Filters provide search functionality, on list calls, using the "filter" parameter. You need to specify the column
288-
name, a comma, the match type, another commma and the value you want to filter on. These are supported match types:
288+
name, a comma, the match type, another comma and the value you want to filter on. These are supported match types:
289289

290290
- "cs": contain string (string contains value)
291291
- "sw": start with (string starts with value)
@@ -572,7 +572,7 @@ This adjusts the titles of the posts. And the return values are the number of ro
572572
[1,1]
573573

574574
Which means that there were two update operations and each of them had set one row. Batch operations use database
575-
transactions, so they either all succeed or all fail (successful ones get roled back). If they fail the body will
575+
transactions, so they either all succeed or all fail (successful ones get rolled back). If they fail the body will
576576
contain the list of error documents. In the following response the first operation succeeded and the second operation
577577
of the batch failed due to an integrity violation:
578578

@@ -667,7 +667,7 @@ You can enable the following middleware using the "middlewares" config parameter
667667
- "multiTenancy": Restricts tenants access in a multi-tenant scenario
668668
- "pageLimits": Restricts list operations to prevent database scraping
669669
- "joinLimits": Restricts join parameters to prevent database scraping
670-
- "textSearch": Search in all text fields with a simple paramater
670+
- "textSearch": Search in all text fields with a simple parameter
671671
- "customization": Provides handlers for request and response customization
672672
- "json": Support read/write of JSON strings as JSON objects/arrays
673673
- "xml": Translates all input and output from JSON to XML
@@ -763,7 +763,7 @@ In the sections below you find more information on the built-in middleware.
763763
### Authentication
764764

765765
Currently there are five types of authentication supported. They all store the authenticated user in the `$_SESSION` super global.
766-
This variable can be used in the authorization handlers to decide wether or not sombeody should have read or write access to certain tables, columns or records.
766+
This variable can be used in the authorization handlers to decide wether or not somebody should have read or write access to certain tables, columns or records.
767767
The following overview shows the kinds of authentication middleware that you can enable.
768768

769769
| Name | Middleware | Authenticated via | Users are stored in | Session variable |
@@ -780,7 +780,7 @@ Below you find more information on each of the authentication types.
780780

781781
API key authentication works by sending an API key in a request header.
782782
The header name defaults to "X-API-Key" and can be configured using the 'apiKeyAuth.header' configuration parameter.
783-
Valid API keys must be configured using the 'apiKeyAuth.keys' configuration parameter (comma seperated list).
783+
Valid API keys must be configured using the 'apiKeyAuth.keys' configuration parameter (comma separated list).
784784

785785
X-API-Key: 02c042aa-c3c2-4d11-9dae-1a6e230ea95e
786786

@@ -1394,7 +1394,7 @@ The following errors may be reported:
13941394
| 1019 | 403 Forbidden | Pagination Forbidden
13951395
| 1020 | 409 Conflict | User already exists
13961396
| 1021 | 422 Unprocessable entity | Password too short
1397-
| 1022 | 422 Unprocessable entity | Username is empty;
1397+
| 1022 | 422 Unprocessable entity | Username is empty
13981398
| 9999 | 500 Internal server error | Unknown error
13991399

14001400
The following JSON structure is used:

0 commit comments

Comments
 (0)