Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Edited Issue: Advertise actions information of entities or collections of entities when sending a response [491]

$
0
0
OData spec here talks about 'advertising' of actions in the response. It says 'MAY', but this bug is just to keep track of atleast to make sure we provide this ability.

Spec:
http://www.odata.org/media/30002/OData.html#advertisingcurrentlyavailableactions

Example:
Example: Given a GET request to http://server/Customers(‘ALFKI’)

The service might respond with a Customer entity that advertises a binding of the SampleEntities.CreateOrder action to itself:

{"d":
{
"__metadata": {
...,
"actions" : {
"SampleEntities.CreateOrder" : [{
"title" : "Create Order",
"target" : "Customers(\'ALFKI\')/SampleEntities.CreateOrder"
}]
}
},
"CustomerID": "ALFKI",
"CompanyName": "Alfreds Futterkiste",
...
}
}

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>