updating docs per PR #1850

This commit is contained in:
Patrick Brandt 2016-08-15 09:49:12 -04:00
parent 052b8c3c19
commit 2db9034ef5
3 changed files with 3 additions and 2 deletions

View File

@ -109,6 +109,7 @@ in the `event` object:
- body
- method
- principalId
- stage
- headers
- query
- path

View File

@ -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.

View File

@ -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 )