Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

AttributesValues

HTTP Method                 

GETPOST
Request URIhttp://<ip address>:<port>/restapi/associationsassociation?path=<resource path>&type=<association type>
HTTP Request Header

Authorization: Bearer <OAuth access token>

Content-Type: application/json

Payload[ {"target":"<target path>","type":"<association type>" }]

Response

it retrieves all the associations for the specific type on the given resourceincluding added ones
Response TypeJSON

Delete an association on a given resource

Attributes

...

Values

HTTP

...

Method                 

DELETE
Request

...

URIhttp://<ip address>:<port>/restapi/association?path=<resource path>&type=<association type>
HTTP Request

...

HeaderAuthorization: Bearer <OAuth access token>

...

Response

it retrieves rest of the associations for the given resource after deletion.
Response

...

TypeJSON
Note

Please note the following points for the above requests.

  • ip address                  - IP address at which Governance Registry is running
  • port                              - HTTP port number at the Governance Registry is up
  • resource path            - Path of the resource
  • OAuth access token - Authorized access token per user for an hour by default.
  • association type        - type of association. By Default, Greg has 3 types, such as usedBy, ownedBy, other.
  • restapi                         - name of the War file for the REST API resides at {Greg_home}/repository/deployment/server/jaxwebapps/.
                                           If the user renamed this war file, the new name will be used instead of restapi.

...