mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Document resp parameter support in API GW docs
This commit is contained in:
parent
797dbc3837
commit
232c8c38ff
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user