Returns an instance of HttpResult class which contains a collection of items based on the specified association.
This association should be a one-to-many association or many-many association.
A routing for this action may be:
{ "url":"/:controller/:parent/:model/index.json", "mime":"application/json", "action":"association" }
or
{ "url":"/:controller/:parent/:model/index.html", "mime":"text/html", "action":"association" }
//get orders in JSON format
/GET /Party/353/Order/index.json
This action supports common query options like $filter, $order, $top, $skip etc.
The result will be a result-set with associated items:
//JSON Results:
{
"total": 8,
"skip": 0,
"records": [
{
"id": 37,
"customer": 353,
"orderDate": "2015-05-05 01:19:34.000+03:00",
"orderedItem": {
"id": 407,
"additionalType": "Product",
"category": "PC Components",
"price": 1625.49,
"model": "HR5845",
"releaseDate": "2015-09-20 03:35:33.000+03:00",
"name": "Nvidia GeForce GTX 650 Ti Boost",
"dateCreated": "2015-11-23 14:53:04.884+02:00",
"dateModified": "2015-11-23 14:53:04.887+02:00"
},
"orderNumber": "OFV804",
"orderStatus": {
"id": 1,
"name": "Delivered",
"alternateName": "OrderDelivered",
"description": "Representing the successful delivery of an order."
},
"paymentDue": "2015-05-25 01:19:34.000+03:00",
"paymentMethod": {
"id": 6,
"name": "Direct Debit",
"alternateName": "DirectDebit",
"description": "Payment by direct debit"
},
"additionalType": "Order",
"dateCreated": "2015-11-23 21:00:18.264+02:00",
"dateModified": "2015-11-23 21:00:18.266+02:00"
}
...]
...
}
Handles data object edit (e.g. /user/1/edit.html, /user/1/edit.json etc)
Handles data object creation (e.g. /user/1/new.html, /user/1/new.json etc)
Handles data object deletion (e.g. /user/1/remove.html, /user/1/remove.json etc)
Handles data object display (e.g. /user/1/show.html, /user/1/show.json etc)