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
If you need to accept multiple HTTP methods in a single function, you can use the `route` method and pass a list of HTTP methods.
224
+
If you need to accept multiple HTTP methods in a single function, or support a HTTP method for which no decorator exists (e.g. [TRACE](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/TRACE)), you can use the `route` method and pass a list of HTTP methods.
| Swagger UI is **publicly accessible by default**| When using `enable_swagger` method, you can [protect sensitive API endpoints by implementing a custom middleware](#customizing-swagger-ui) using your preferred authorization mechanism. |
530
-
|**No micro-functions support** yet | Swagger UI is enabled on a per resolver instance which will limit its accuracy here. |
531
-
| You need to expose a **new route**| You'll need to expose the following path to Lambda: `/swagger`; ignore if you're routing this path already. |
532
-
| JS and CSS files are **embedded within Swagger HTML**| If you are not using an external CDN to serve Swagger UI assets, we embed JS and CSS directly into the HTML. To enhance performance, please consider enabling the `compress` option to minimize the size of HTTP requests. |
| Swagger UI is **publicly accessible by default**| When using `enable_swagger` method, you can [protect sensitive API endpoints by implementing a custom middleware](#customizing-swagger-ui) using your preferred authorization mechanism.|
530
+
|**No micro-functions support** yet | Swagger UI is enabled on a per resolver instance which will limit its accuracy here.|
531
+
| You need to expose a **new route**| You'll need to expose the following path to Lambda: `/swagger`; ignore if you're routing this path already.|
532
+
| JS and CSS files are **embedded within Swagger HTML**| If you are not using an external CDN to serve Swagger UI assets, we embed JS and CSS directly into the HTML. To enhance performance, please consider enabling the `compress` option to minimize the size of HTTP requests. |
|[SchemaValidationMiddleware](/lambda/python/latest/api/event_handler/middlewares/schema_validation.html){target="_blank"} | Validates API request body and response against JSON Schema, using [Validation utility](../../utilities/validation.md){target="_blank"} |
841
841
842
842
#### Being a good citizen
@@ -1053,7 +1053,7 @@ When you're describing your API, declare security schemes at the top level, and
1053
1053
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"}) |
1058
1058
|[API keys](https://swagger.io/docs/specification/authentication/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"}. |
1059
1059
|[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. |
0 commit comments