You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/core/event_handler/api_gateway.md
+24-25Lines changed: 24 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -221,11 +221,11 @@ Dynamic path parameters are defined using angle brackets `<parameter_name>` synt
221
221
***Parameter names** must contain only word characters (letters, numbers, underscore)
222
222
***Captured values** can contain letters, numbers, underscores, and these special characters: `-._~()'!*:@,;=+&$%<> \[]{}|^`. Reserved characters must be percent-encoded in URLs to prevent errors.
@@ -253,12 +253,12 @@ For scenarios where you need to handle arbitrary or deeply nested paths, you can
253
253
254
254
You can use standard [Python regex patterns](https://docs.python.org/3/library/re.html#regular-expression-syntax){target="_blank" rel="nofollow"} in your route definitions, for example:
255
255
256
-
| Pattern | Description | Examples |
257
-
|---------|-------------|----------|
258
-
|`.+`| Matches one or more characters (greedy) |`/proxy/.+` matches `/proxy/any/deep/path`|
259
-
|`.*`| Matches zero or more characters (greedy) |`/files/.*` matches `/files/` and `/files/deep/path`|
| SchemaValidationMiddleware | Validates API request body and response against JSON Schema, using [Validation utility](../../utilities/validation.md){target="_blank"} |
1049
1048
1050
1049
#### Being a good citizen
@@ -1267,13 +1266,13 @@ Security schemes are declared at the top-level first. You can reference them glo
1267
1266
1268
1267
OpenAPI 3 lets you describe APIs protected using the following security schemes:
|[HTTP auth](https://www.iana.org/assignments/http-authschemes/http-authschemes.xhtml){target="_blank"} |`HTTPBase`| HTTP authentication schemes using the Authorization header (e.g: [Basic auth](https://swagger.io/docs/specification/authentication/basic-authentication/){target="_blank"}, [Bearer](https://swagger.io/docs/specification/authentication/bearer-authentication/){target="_blank"}) |
1273
-
|[API keys](https://swagger.io/docs/specification/authentication/api-keys/){target="_blank"} (e.g: query strings, cookies) |`APIKey`| API keys in headers, query strings or [cookies](https://swagger.io/docs/specification/authentication/cookie-authentication/){target="_blank"}. |
1274
-
|[OAuth 2](https://swagger.io/docs/specification/authentication/oauth2/){target="_blank"} |`OAuth2`| Authorization protocol that gives an API client limited access to user data on a web server. |
1275
-
|[OpenID Connect Discovery](https://swagger.io/docs/specification/authentication/openid-connect-discovery/){target="_blank"} |`OpenIdConnect`| Identity layer built [on top of the OAuth 2.0 protocol](https://openid.net/developers/how-connect-works/){target="_blank"} and supported by some OAuth 2.0. |
|[HTTP auth](https://www.iana.org/assignments/http-authschemes/http-authschemes.xhtml){target="_blank"} |`HTTPBase`| HTTP authentication schemes using the Authorization header (e.g: [Basic auth](https://swagger.io/docs/specification/authentication/basic-authentication/){target="_blank"}, [Bearer](https://swagger.io/docs/specification/authentication/bearer-authentication/){target="_blank"}) |
1272
+
|[API keys](https://swagger.io/docs/specification/authentication/api-keys/){target="_blank"} (e.g: query strings, cookies) |`APIKey`| API keys in headers, query strings or [cookies](https://swagger.io/docs/specification/authentication/cookie-authentication/){target="_blank"}. |
1273
+
|[OAuth 2](https://swagger.io/docs/specification/authentication/oauth2/){target="_blank"} |`OAuth2`| Authorization protocol that gives an API client limited access to user data on a web server. |
1274
+
|[OpenID Connect Discovery](https://swagger.io/docs/specification/authentication/openid-connect-discovery/){target="_blank"} |`OpenIdConnect`| Identity layer built [on top of the OAuth 2.0 protocol](https://openid.net/developers/how-connect-works/){target="_blank"} and supported by some OAuth 2.0. |
Join us on [Discord](https://discord.gg/B8zZKbbyET){target="_blank" rel="nofollow"} to connect with the Powertools for AWS Lambda (Python) community 👋. Ask questions, learn from each other, contribute, hang out with key contributors, and more!
0 commit comments