Authority REST API - Association Controller
The association/to/<type>/<code> URL manages Associations from the To side of the relationship.
Retrieve direct Associations to an Asset
Section titled “Retrieve direct Associations to an Asset”GET /association/to/<type>/<code>
Retrieves the requested Asset, along with any direct Associations To that Asset.
URL Parameters
Section titled “URL Parameters”| Parameter | Description |
|---|---|
| type | A single URL-encoded Asset Type code. |
| code | A single URL-encoded Asset code. |
Query Parameters
Section titled “Query Parameters”| Parameter | Expected | Description |
|---|---|---|
| fromtype | Optional | An Asset Type code. Will only return Associations from Assets of this type. Can be repeated to include additional Asset Types. |
| app | Optional | An Application identifier. Will only return Associations with context data for this Application. Can be repeated to include additional Applications. |
Response
Section titled “Response”| Code | Status | Description |
|---|---|---|
| 200 | Success | The Asset was found. Content is a single AssociationsToAsset object. |
| 404 | Failure | The Asset does not exist. |
| 422 | Failure | Invalid data was provided. Content is a JSON array of one or more error codes describing the problem. |