openwhisk
openwhisk copied to clipboard
Feature Request: Support PATCH Requests in the API
Environment details:
- N/A (Cloud Service)
Steps to reproduce the issue:
- Create an Action (or another entity) via the AIO CLI or REST API
- Find a necessary use case to update one or more properties, annotations or others on the action
- 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