From 232c8c38ffee839ee4264c8dff562f6912c2d5d3 Mon Sep 17 00:00:00 2001 From: James Thomas Date: Fri, 6 Oct 2017 15:43:17 +0200 Subject: [PATCH] Document `resp` parameter support in API GW docs --- docs/providers/openwhisk/events/apigateway.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/providers/openwhisk/events/apigateway.md b/docs/providers/openwhisk/events/apigateway.md index 536d57b03..5bbbbb7d5 100644 --- a/docs/providers/openwhisk/events/apigateway.md +++ b/docs/providers/openwhisk/events/apigateway.md @@ -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