jthomas commented on a change in pull request #172: Make it easier to 
create/update action sequences.
URL: 
https://github.com/apache/incubator-openwhisk-client-js/pull/172#discussion_r297157777
 
 

 ##########
 File path: README.md
 ##########
 @@ -459,6 +454,32 @@ If you pass in an array for the first parameter, the 
`create` call will be execu
 ow.actions.create([{...}, {...}])
 ```
 
+### create & update action sequence
+
+```javascript
+ow.actions.create({name: '...', sequence: ["action_name", "next_action", ...]})
+ow.actions.update({name: '...', sequence: ["action_name", "next_action", ...]})
+```
+
+The following mandatory parameters are supported:
+
+- `name` - action identifier
+- `sequence` - Array containing JS strings with action identifiers to use in 
sequence. This can be a full or relative action identifier (e.g. `action-name` 
or `/namespace/package/action-name`).
+
+The following optional parameters are supported:
+
+- `namespace` - set custom namespace for endpoint
+- `params` - object containing default parameters for the action (default: 
`{}`)
+- `annotations` - object containing annotations for the action (default: `{}`)
+- `limits` - object containing limits for the action (default: `{}`)
+- `version` - set semantic version of the action. If parameter is empty when 
create new action openwisk generate 0.0.1 value when update an action increase 
the patch version.
 
 Review comment:
   Opened https://github.com/apache/incubator-openwhisk-client-js/issues/174

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to