rabbah commented on a change in pull request #3244: Move parameter docs to separate page, add package params docs URL: https://github.com/apache/incubator-openwhisk/pull/3244#discussion_r166257869
########## File path: docs/parameters.md ########## @@ -0,0 +1,181 @@ +# Working with parameters + +It's possible to supply data to actions and these can be provided in a few different ways. This page outlines how to configure parameters when deploying packages and actions, and how to supply parameters to actions when invoking the action. + +### Passing parameters to an action at invoke time + +Parameters can be passed to the action when it is invoked. These examples use JavaScript but all the other languages work the same way. + +1. Use parameters in the action. For example, update the 'hello.js' file with the following content: Review comment: Instead of update the hello.js should it be: here?s a new hello.js where the function accepts a json object as a parameter? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services