docs: Update httpApi reference in serverless.yml.md (#10389)

This commit is contained in:
Thibault RICHARD 2021-12-20 09:51:10 +01:00 committed by GitHub
parent 7bf8f1b723
commit 8daef830e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,6 +188,8 @@ provider:
id: 'my-id' # If we want to attach to externally created HTTP API its id should be provided here
name: 'dev-my-service' # Use custom name for the API Gateway API, default is ${sls:stage}-${self:service}
payload: '2.0' # Specify payload format version for Lambda integration ('1.0' or '2.0'), default is '2.0'
disableDefaultEndpoint: false # Specify whether clients can invoke your API by using the default `execute-api` endpoint
metrics: true # Enable detailed metrics
cors: true # Implies default behavior, can be fine tuned with specific options
authorizers:
# JWT authorizer to back HTTP API endpoints