Document resp parameter support in API GW docs

This commit is contained in:
James Thomas 2017-10-06 15:43:17 +02:00 committed by GitHub
parent 797dbc3837
commit 232c8c38ff

View File

@ -111,8 +111,15 @@ functions:
- http:
path: posts/create
method: post
resp: json
```
HTTP event configuration supports the following parameters.
- `method` - HTTP method (mandatory).
- `path` - URI path for API gateway (mandatory).
- `resp` - controls [web action content type](https://github.com/apache/incubator-openwhisk/blob/master/docs/webactions.md#additional-features), values include: `json`, `html`, `http`, `svg`or `text` (optional, defaults to `json`).
### CORS Support
**Note:** All HTTP endpoints defined in this manner have cross-site requests