Versions Compared

Key

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

...

AttributesValues

HTTP Method                

GET
Request URI/associations?path={ resource path }&start={ start page }&size={ number of records }
HTTP Request HeaderAuthorization: Bearer { OAuth access token }
ResponseIt retrieves all the associations posted on the specific resource.
ResponseHTTP 200 OK
Response TypeJSON

Get Associations of Specific Type on a Given Resource

AttributesValues

HTTP Method                 

GET
Request URI/associations?path={ resource path }&type={ association type }
HTTP Request HeaderAuthorization: Bearer {OAuth access token}

ResponseDescription

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

Add Associations to a Resource

AttributesValues

HTTP Method                 

POST
Request URI/association?path={resource path}
HTTP Request Header

Authorization: Bearer {OAuth access token}

Content-Type: application/json

Payload[{ "type":"<type of the association>","target":"<valid resource path>"}] 

Description

It adds the array of associations passed as the payload for the source resource
ResponseHTTP 200 OK.
Response TypeJSON

Delete an Association on a Given Resource

AttributesValues

HTTP Method                 

DELETE
Request URI/association?path={resource path}
Payload[{ "type":"<type of the association>","target":"<valid resource path>"}] 
HTTP Request HeaderAuthorization: Bearer {OAuth access token}

Description

It deletes the association between the source and target resources for the given association type.
ResponseHTTP 200 OK.
Response TypeJSON