Issue with Governance REST API of WSO2 Governance Registry

235 Views Asked by At

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

1

There are 1 best solutions below

17
On

If you want to partially update the asset, relevant HTTP operation is HTTP PATCH. However, Governance REST API doesn't support HTTP PATCH operation yet. So first you have to get the asset data using HTTP GET and after that, you can update relevant attributes in given asset using HTTP PUT operation.