Mathan Prasath
Mathan Prasath

Reputation: 27

Issue with Governance REST API of WSO2 Governance Registry

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

Upvotes: 1

Views: 240

Answers (1)

Chandana
Chandana

Reputation: 2638

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.

Upvotes: 2

Related Questions