mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
updating docs per PR #1850
This commit is contained in:
parent
052b8c3c19
commit
2db9034ef5
@ -109,6 +109,7 @@ in the `event` object:
|
||||
- body
|
||||
- method
|
||||
- principalId
|
||||
- stage
|
||||
- headers
|
||||
- query
|
||||
- path
|
||||
|
||||
@ -18,7 +18,7 @@ Those resources are then merged into the `serverless.service.resources.Resources
|
||||
|
||||
## Universal JSON request template
|
||||
|
||||
The API Gateway plugin implements a request template which provides `{body, method, principalId, headers, query, path, identity,
|
||||
The API Gateway plugin implements a request template which provides `{body, method, principalId, stage, headers, query, path, identity,
|
||||
stageVariables} = event` as JavaScript objects. This way you don't have to define the template on your own but can use
|
||||
this default template to access the necessary variables in your code.
|
||||
|
||||
|
||||
@ -86,7 +86,7 @@ module.exports = {
|
||||
|
||||
// universal velocity template
|
||||
// provides
|
||||
// `{body, method, principalId, headers, query, path, identity, stageVariables} = event`
|
||||
// `{body, method, principalId, stage, headers, query, path, identity, stageVariables} = event`
|
||||
// as js objects
|
||||
const DEFAULT_JSON_REQUEST_TEMPLATE = `
|
||||
#define( $loop )
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user