apache / apache/openwhisk-cli

Add flag to convert non-web actions when adding apis

Open
#45 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue help wanted
Dominant language
Go
Stars
109
Forks
98
PR merge metrics
No merged PRs in 30d

Description

If you try to add an API to an action that isn't a web action, you get the following error.

```
error: API action '/_/parent' is not a web action. Issue 'wsk action update /_/parent --web true' to convert the action to a web action.
Run 'wsk --help' for usage.
```
Can we have a flag to make the api command automatically add the annotation if it is missing?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.