You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2019/12/06 06:47:22 UTC

[GitHub] [openwhisk] JiniousChoi edited a comment on issue #4764: How to invoke a web action for .json context extension via wsk command?

JiniousChoi edited a comment on issue #4764: How to invoke a web action for .json context extension via wsk command?
URL: https://github.com/apache/openwhisk/issues/4764#issuecomment-562453533
 
 
   I suggest that `wsk` should provide a switch for web action invocation.
   Say, if there is an action named ACTION:
   ```
   wsk action invoke -r ACTION -web=[http|json|text|svg|...]
   ```
   or, we could be more explicit about this matter in `wsk action invoke --help`, regarding what's feasible and what isn't.
   
   @style95 
   While we can make both normal/web action types with the command, we ONLY can invoke normal actions with it. And I don't see any explicit explanation about it.
   
   It's a matter of UX. it seems inconsistent to me.
   
   @style95 
   And that brings in one more hop here.
   A user who simply wants to check if one's web action is working or not would need to run like:
   ```
   curl $(wsk action get python-web --url)
   ```
   
   I think `wsk action invoke python-web --web` looks intuitive and nicer.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services