/api/asset/before

Usage

Returns a sequence of assets that are upstream (feeding to) an asset along a specific relationship.

Details

DetailValue
GroupAsset
From Server Version0.9.0
PermissionGuest
MethodsGET
Parameters
ParameterNotesMeaning
idInteger [Required]The ID of the asset
relInteger (0)The ID of the relationship, or '0' for all
indirectBoolean (0)Set to '1' to return recursive results (all grandchildren etc. This may have a negative performance impact.)
formatString (xml)Either 'xml' or 'json'

Examples

Call
[GET] http://ardiserver.com/api/asset/before?id=925
Success (XML)
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<response>
   <relatedto rel="2" asset="9" name="Front Left Wheel"/>
   <relatedto rel="2" asset="10" name="Front Right Wheel"/>
   <relatedto rel="2" asset="11" name="Rear Left Wheel"/>
   <relatedto rel="2" asset="12" name="Rear Right Wheel"/>
   <relatedto rel="2" asset="17" name="Engine"/>
   <relatedto rel="2" asset="19" name="Drivers Seat"/>
</response>
Success (JSON)
[{
        {
		"rel": "2",
		"asset": "9",
		"name": "Front Left Wheel",
	}, {
		"rel": "2",
		"asset": "10",
		"name": "Front Right Wheel",
	}, {
		"rel": "2",
		"asset": "11",
		"name": "Rear Left Wheel",
	}, {
		"rel": "2",
		"asset": "12",
		"name": "Rear Right Wheel",
	}, {
		"rel": "2",
		"asset": "17",
		"name": "Engine",
	}, {
		"rel": "2",
		"asset": "19",
		"name": "Drivers Seat",
		
	}, {
		"rel": "2",
		"asset": "20",
		"name": "Front Passenger Seat",
		
	}, {
		"rel": "2",
		"asset": "21",
		"name": "Rear Left Seat",
		
	}, {
		"rel": "2",
		"asset": "22",
		"name": "Rear Right Seat",
		
	}
}]

See Also