We are facing a serious issue with GREG's Governance REST API. Below are the exact issue scenario and other details for a quick resolution.
We wanted to add few custom fields in the "restservice" Artifact of RXT file hence we have added in the .rxt file also we successfully able to pass value to the added custom fields through Governance REST API call (https://localhost:9443/governance/restservices)-POST operation but while performing update(same URL using PUT operation) operation for the added restservice using UUID the previously added data are getting wiped off.
Product Details: WSO2 Governance Registry 5.3.0 API Name: Governance REST API
If you want to partially update the asset, relevant HTTP operation is
HTTP PATCH
. However, Governance REST API doesn't supportHTTP PATCH
operation yet. So first you have to get the asset data usingHTTP GET
and after that, you can update relevant attributes in given asset usingHTTP PUT
operation.