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 2021/12/16 16:22:16 UTC

[GitHub] [openwhisk] klcodanr opened a new issue #5187: Feature Request: Support PATCH Requests in the API

klcodanr opened a new issue #5187:
URL: https://github.com/apache/openwhisk/issues/5187


   
   
   ## Environment details:
   
    - N/A (Cloud Service)
   
   ## Steps to reproduce the issue:
   
   1.   Create an Action (or another entity) via the AIO CLI or REST API
   2.   Find a necessary use case to update one or more properties, annotations or others on the action
   3.   The only option is now to PUT a new version of the action including it's code
   
   ## Provide the expected results and outputs:
   
   The API should support sending a PATCH request in a well-understood format like JSON Patch (rfc6902):
   http://jsonpatch.com/
   
   Which has a Scalia implementation: 
   https://github.com/gnieh/diffson
   
   For example you could send a PATCH request to `/api/v1/actions/[my-action` with the body:
   
   ```
   [
     { "op": "replace", "path": "/properties/2", "value": {
               "key": "SERVICE_HOST",
               "value": "https://my-sevice.companygateway.io"
           } },
   ]
   ```
   
   ## Provide the actual results and outputs:
   
   Not Supported
   
   ## Additional information you deem important:
   
   


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org