Skip to main content

Posts

Showing posts from 2018

Openwhisk Web actions with path parameters

What are web actions? Web actions can be explained as OpenWhisk actions annotated to quickly enable you to build web based applications as defined in the official documentation. If we compare an Openwhisk action and a web action, an OpenWhisk action that is not a web action requires both authentication and must respond with a JSON object. In contrast a web action can be invoked even without authentication and is capable of also passing additional data such as HTTP header, Status codes and returning body content of different types. What can we retrieve inside a web action? When invoking web actions they are capable of receiving additional HTTP request details as they are designed to facilitate features of HTTP invocations. __ow_method : The HTTP method of the request. __ow_headers : The request headers. __ow_user: The namespace identifying the OpenWhisk authenticated subject who created this web action. __ow_path:The attributes which are passed as path parameters into the ac