This documentation is for WSO2 Governance Registry 5.3.0. View documentation for the latest release.
||
Skip to end of metadata
Go to start of metadata

This section explains the REST operations for copying and moving resources that have been secured with Basic Auth.

Query parameters

The following terms explain the meaning of the query parameters passed with the following REST URIs:

ParameterExplanation
pathPath of the resource
destinationTarget location
startStart page number (optional)
sizeNumber of comments to be fetched (optional)

The {start page} and {number of records} can be any value greater than or equal to 0. The {start page} and {number of records} begin with 1. If both of them are 0, then all the records are retrieved. Note that start and size are optional parameters and will default to 0 by default.

For details on security (the authorization header) and the URI syntax (port, context, etc.), see Registry REST API.

Copy resource

AttributesValues

HTTP Method                

POST
Request URI/copy?path={ resource path }&destination={ target path}
HTTP Request HeaderAuthorization: Basic { base64encoded(username:password) }
DescriptionCopy resouce to target path
Response Typeapplication/json
ResponseHTTP 204 No Content.
Sample request

curl -X POST -H "Authorization: Basic YWRtaW46YWRtaW4=" -H "Cache-Control: no-cache" "https://localhost:9443/resource/1.0.0/copy?path=/_system/governance/trunk/soapservices/com/amazon/soap/1.0.0/AmazonSearchService&destination=/_system/governance/trunk/newdestination" -i -k

 

Move resource

AttributesValues

HTTP Method                

POST
Request URI/move?path={ resource path }&destination={ target path}
HTTP Request HeaderAuthorization: Basic { base64encoded(username:password) }
DescriptionMove resouce to target path
Response Typeapplication/json
ResponseHTTP 204 No Content.
Sample request

curl -X POST -H "Authorization: Basic YWRtaW46YWRtaW4=" -H "Cache-Control: no-cache" "https://localhost:9443/resource/1.0.0/move?path=/_system/governance/trunk/soapservices/com/amazon/soap/1.0.0/AmazonSearchService&destination=/_system/governance/trunk/newlocation" -i -k

 

  • No labels