...
Get list of assets of certain type
Syntax | xyz -
| Supported Query Format |
| name xyz
| value is
| 5 -
| name xyz with version
| abc -
| ServiceLifeCycle -
| name
| usa -
| whether country is an rxt attribute
| xml - searches only soap services with version
| 5 ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Warning |
| ||||||||||||||||||||||||||||||||||||||||||||
Example(s) |
| ||||||||||||||||||||||||||||||||||||||||||||
Sample cURL Command(s) |
|
...
Get an asset of a certain type
Syntax | GET /governance/<asset_short_name_s>/UUID |
---|---|
Example | GET |
...
https://localhost:9443/ /governance/restservices/3245se24553 | |
Sample cURL Command |
|
---|
...
|
wowSyntax POST /governance/<asset_short_name_s> <payload> Example Here the payload should be in JSON format. Following are the required attributes. - name
- version
- type
Payload format is as follows:
Code Block { name: "Artifact Name", type: "Artifact Type", version: “Version Number", Attribute-N: “Attribute-N” value }
For example;
Code Block language java POST https://localhost:9443 /governance/restservices { name: "TestRESTService", type: "restservice", context: "/test", version: "1.0.0" }
Sample cURL Command curl -X POST -H "Authorization: Basic YWRtaW46YWRtaW4=" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{
"name":"TestRESTService",
"type":"restservice",
"context":"/test",
"version":"1.0.0"
Response If the artifact creation is successful, the server will return HTTP 200 code along with the “location” header pointing to the newly created artifact. If there is an issue creating a new artifact, it will return an appropriate error code.
For example, the above example may return the following:
HTTP 200
Location: https://localhost:9443/governance/restservices/3ec1dcd9-66d8-41da-a0d2-ec171df64cc3
- Update an existing asset
Syntax PUT /governance/<asset_short_name_s>/uuid<payload> Example Here the payload should be in JSON format. Following are the required attributes. - name
- version
- type
Payload format is as follows:
Code Block { name: "Artifact Name", type: "Artifact Type", version: “Version Number", Attribute-N: “Attribute-N” value }
For example;
Code Block language java PUT https://localhost:9443 /governance/restservices/324dsdwa535 { name: "TestRESTService", type: "restservice", context: "/test-new", version: "1.0.0", }
Sample cURL Command curl -X PUT -H "Authorization: Basic YWRtaW46YWRtaW4=" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{
"name":"TestRESTService",
"type":"restservice",
"context":"/test",
"version":"1.0.0",
"description": "Discription added by Rest API"
}' "https://localhost:9443/governance/restservices/97bdb275-2b09-4744-b29f-125cf2c8e387" -i -k
Response If the artifact creation is successful, the server will return HTTP 201 code along with the “location” header pointing to the newly created artifact. If there is an issue creating the new artifact, it will return an appropriate error code. - Delete an asset
Syntax DELETE /governance/<asset_short_name_s>/UUID Example DELETE https://localhost:9443 /governance/restservices/3245se24553 Sample cURL Command curl -X DELETE -H "Authorization: Basic YWRtaW46YWRtaW4=" -H "Cache-Control: no-cache" "https://localhost:9443/governance/restservices/97bdb275-2b09-4744-b29f-125cf2c8e387" -i -k - Get lifecycle state of an asset
Syntax - GET /governance/<RXT_short_name_s>/uuid/states
- GET /governance/<RXT_short_name_s>/uuid/states?lc=LCName
Example - GET https://localhost:9443 /governance/restservices/44dadw4/states
- GET https://localhost:9443 /governance/restservices/44dadw4/states?lc=ServiceLifeCycle
Sample cURL Command - curl -X GET -H "Authorization: Basic YWRtaW46YWRtaW4=" -H "Cache-Control: no-cache" "https://localhost:9443/governance/restservices/cae93ba9-9543-43be-9f30-bb96cec3c443/states" -i -k
- curl -X GET -H "Authorization: Basic YWRtaW46YWRtaW4=" -H "Cache-Control: no-cache" "https://localhost:9443/governance/restservices/cae93ba9-9543-43be-9f30-bb96cec3c443/states?lc=ServiceLifeCycle" -i -k
- Update lifecycle change of an asset
Syntax PUT /governance/<RXT_short_name_s>/uuid/states payload
Payload format
{
lc: "Lifecycle name",
action: "Promote",
check_item_N : "value_N",
}Example PUT https://localhost:9443/governance/restservices/cea0c482-4280-4837-8126-3fd97cdc0a41/states
{
lc: "ServiceLifeCycle",action: "Promote",
item_0 : "true",
item_1 : "true",
item_2 : "true"
}Sample cURL Command curl -X PUT -H "Authorization: Basic YWRtaW46YWRtaW4=" -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{
"lc":"ServiceLifeCycle",
"action":"Promote",
"item_0":"true",
"item_1":"true",
"item_2":"true"
}' "https://localhost:9443/governance/restservices/cae93ba9-9543-43be-9f30-bb96cec3c443/states" -i -k
...