My question is where is the correct place to shim your hypermedia controls (links) into your responses. I would think you wouldn't want to put it in whatever data structure your returning from your action method (its ok URI in my RESTful responses but messy
to have it in internal objects).
There might be instances where you also need to read the hypermedia controls from the request. Is there any good links/blog post you can reference that discuss this? Is action filters the answer?
ncage
Member
25 Points
42 Posts
Hypermedia controls (links)?
Mar 26, 2012 05:10 PM|LINK
Just got started with Web API.
My question is where is the correct place to shim your hypermedia controls (links) into your responses. I would think you wouldn't want to put it in whatever data structure your returning from your action method (its ok URI in my RESTful responses but messy to have it in internal objects).
There might be instances where you also need to read the hypermedia controls from the request. Is there any good links/blog post you can reference that discuss this? Is action filters the answer?
thanks,
Ncage
panesofglass
Participant
758 Points
242 Posts
Re: Hypermedia controls (links)?
Mar 26, 2012 05:13 PM|LINK
Glenn posted some samples on his blog at http://codebetter.com/glennblock/2012/01/08/hypermedia-and-web-api-design-brain-dump-and-samples/.
By the way, happy birthday, Glenn!
ncage
Member
25 Points
42 Posts
Re: Hypermedia controls (links)?
Mar 26, 2012 05:23 PM|LINK
thanks thats exactly what i was looking for.