Versions Compared

Key

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

...

  • Get all the associations on a resource.
  • Get an association of specific type on a given resource.
  • Add the associations to a resource.
  • Delete an association on a given resource.
Note

Since the current Registry REST API did not implement the pagination right now, If the user specifies any value other than 0 for the pagestart or pageend in the REST requests will throw HTTP 404 error code. Even though the  user omits the pagestart and pageend parameters to be passed with URL , the request will work with the current REST API. Pagination support to REST API will be adapted soon.

...

AttributesValues

HTTP Method                

GET
Request URIhttp://<ip address>:<port>/restapi/associations?path=<resource path>&pagestart=0&pageend=0{ resource path }&start={ start page }&size={ number of records }
HTTP Request HeaderAuthorization: Bearer <OAuth { OAuth access token>token }
ResponseIt retrieves all the associations posted on the specific resource.
Response TypeJSON

...

AttributesValues

HTTP Method                 

GET
Request URIhttp://<ip address>:<port>/restapi/associations?path=<resource path>{ resource path }&type=<association type>{ association type }
HTTP Request HeaderAuthorization: Bearer <OAuth access token>

Response

It retrieves all the associations for the specific type on the given resource
Response TypeJSON

...