shell
shell copied to clipboard
fsh api create treating response http as json
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
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.