shell icon indicating copy to clipboard operation
shell copied to clipboard

fsh api create treating response http as json

Open rabbah opened this issue 7 years ago • 1 comments

following the steps here, substituting fsh for wsk:

under Full control over the HTTP response:

> fsh api create /hello /world get hello --response-type http
https://openwhisk/api/v1/web/guest/hello.json
ok: updated action hello

rabbah avatar Jun 13 '18 19:06 rabbah

is the shell checking the action code when using http response-type?

If I try with an action that return { msg: "hello"} I get:

API creation failure: The action must use a response type of '.http' in order to receive the path parameters.

rabbah avatar Jun 13 '18 19:06 rabbah