<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: FubuMVC – Define your actions your way</title>
	<atom:link href="http://lostechies.com/joshuaflanagan/2010/01/18/fubumvc-define-your-actions-your-way/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/joshuaflanagan/2010/01/18/fubumvc-define-your-actions-your-way/</link>
	<description></description>
	<lastBuildDate>Thu, 14 Mar 2013 03:50:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: Jamie</title>
		<link>http://lostechies.com/joshuaflanagan/2010/01/18/fubumvc-define-your-actions-your-way/#comment-93</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Wed, 20 Jan 2010 15:34:23 +0000</pubDate>
		<guid isPermaLink="false">/blogs/joshuaflanagan/archive/2010/01/18/fubumvc-define-your-actions-your-way.aspx#comment-93</guid>
		<description>What I meant was essentially returning different &quot;views&quot; of the same model based on file extension or some header info, but using the same action.  So for example /security/signin would return full view of login widget with layout, /security/signin.json might return just data for an Ajax call, but they use the same action returning the same model.</description>
		<content:encoded><![CDATA[<p>What I meant was essentially returning different &#8220;views&#8221; of the same model based on file extension or some header info, but using the same action.  So for example /security/signin would return full view of login widget with layout, /security/signin.json might return just data for an Ajax call, but they use the same action returning the same model.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua Flanagan</title>
		<link>http://lostechies.com/joshuaflanagan/2010/01/18/fubumvc-define-your-actions-your-way/#comment-92</link>
		<dc:creator>Joshua Flanagan</dc:creator>
		<pubDate>Wed, 20 Jan 2010 04:02:14 +0000</pubDate>
		<guid isPermaLink="false">/blogs/joshuaflanagan/archive/2010/01/18/fubumvc-define-your-actions-your-way.aspx#comment-92</guid>
		<description>Jamie/Ryan - can you describe more concretely what you would like to see with a &quot;returning different media types&quot; feature? What is a real world example of when you would want to do this? Would you expect to invoke an entirely different action depending  on the request? Or are you always executing the same action, with the same output model, and you just want to format it differently? If I can better understand the need, I might be able to put together a post on how to do it with Fubu.</description>
		<content:encoded><![CDATA[<p>Jamie/Ryan &#8211; can you describe more concretely what you would like to see with a &#8220;returning different media types&#8221; feature? What is a real world example of when you would want to do this? Would you expect to invoke an entirely different action depending  on the request? Or are you always executing the same action, with the same output model, and you just want to format it differently? If I can better understand the need, I might be able to put together a post on how to do it with Fubu.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://lostechies.com/joshuaflanagan/2010/01/18/fubumvc-define-your-actions-your-way/#comment-91</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Tue, 19 Jan 2010 20:31:06 +0000</pubDate>
		<guid isPermaLink="false">/blogs/joshuaflanagan/archive/2010/01/18/fubumvc-define-your-actions-your-way.aspx#comment-91</guid>
		<description>I&#039;m also interested in returning different media types based on header and/or file extension.  Is there a blog post out there where someone describes IActionBehavior, or could you point us in the right direction?  Thanks!
</description>
		<content:encoded><![CDATA[<p>I&#8217;m also interested in returning different media types based on header and/or file extension.  Is there a blog post out there where someone describes IActionBehavior, or could you point us in the right direction?  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darren</title>
		<link>http://lostechies.com/joshuaflanagan/2010/01/18/fubumvc-define-your-actions-your-way/#comment-90</link>
		<dc:creator>Darren</dc:creator>
		<pubDate>Tue, 19 Jan 2010 14:32:09 +0000</pubDate>
		<guid isPermaLink="false">/blogs/joshuaflanagan/archive/2010/01/18/fubumvc-define-your-actions-your-way.aspx#comment-90</guid>
		<description>This is great stuff, thanks!</description>
		<content:encoded><![CDATA[<p>This is great stuff, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Riley</title>
		<link>http://lostechies.com/joshuaflanagan/2010/01/18/fubumvc-define-your-actions-your-way/#comment-89</link>
		<dc:creator>Ryan Riley</dc:creator>
		<pubDate>Tue, 19 Jan 2010 14:21:45 +0000</pubDate>
		<guid isPermaLink="false">/blogs/joshuaflanagan/archive/2010/01/18/fubumvc-define-your-actions-your-way.aspx#comment-89</guid>
		<description>This is AWESOME. I figured you&#039;d have made it this flexible, but after awhile you start getting cynical about how &quot;flexible&quot; a framework or library really is. Well done! Thanks for the responses!</description>
		<content:encoded><![CDATA[<p>This is AWESOME. I figured you&#8217;d have made it this flexible, but after awhile you start getting cynical about how &#8220;flexible&#8221; a framework or library really is. Well done! Thanks for the responses!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua Flanagan</title>
		<link>http://lostechies.com/joshuaflanagan/2010/01/18/fubumvc-define-your-actions-your-way/#comment-88</link>
		<dc:creator>Joshua Flanagan</dc:creator>
		<pubDate>Tue, 19 Jan 2010 03:00:39 +0000</pubDate>
		<guid isPermaLink="false">/blogs/joshuaflanagan/archive/2010/01/18/fubumvc-define-your-actions-your-way.aspx#comment-88</guid>
		<description>@Ryan,
You can definitely build those routes. You&#039;d have to add DELETE to the list of httpVerbs in the SimpleWebsiteFubuRegistry (it was overlooked), and then modify the URL policy to expect an ID as part of the route if the input to the action has an Id property:
http://pastie.org/784219

Returning different media types could be handled through a behavior (IActionBehavior), which I didn&#039;t cover in this post.</description>
		<content:encoded><![CDATA[<p>@Ryan,<br />
You can definitely build those routes. You&#8217;d have to add DELETE to the list of httpVerbs in the SimpleWebsiteFubuRegistry (it was overlooked), and then modify the URL policy to expect an ID as part of the route if the input to the action has an Id property:<br />
<a href="http://pastie.org/784219" rel="nofollow">http://pastie.org/784219</a></p>
<p>Returning different media types could be handled through a behavior (IActionBehavior), which I didn&#8217;t cover in this post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy D. Miller</title>
		<link>http://lostechies.com/joshuaflanagan/2010/01/18/fubumvc-define-your-actions-your-way/#comment-87</link>
		<dc:creator>Jeremy D. Miller</dc:creator>
		<pubDate>Mon, 18 Jan 2010 21:06:09 +0000</pubDate>
		<guid isPermaLink="false">/blogs/joshuaflanagan/archive/2010/01/18/fubumvc-define-your-actions-your-way.aspx#comment-87</guid>
		<description>@Ryan,

Don&#039;t like Josh&#039;s &quot;REST-inspired so don&#039;t flame me for calling it REST&quot; style?  No big deal, just make your own Fubu convention to suit *your* team.  We (the Fubu team) are very cognizant of the fact that others won&#039;t like our conventions, so we&#039;re striving to make it possible for you to write/add/modify conventions on a project by project basis.</description>
		<content:encoded><![CDATA[<p>@Ryan,</p>
<p>Don&#8217;t like Josh&#8217;s &#8220;REST-inspired so don&#8217;t flame me for calling it REST&#8221; style?  No big deal, just make your own Fubu convention to suit *your* team.  We (the Fubu team) are very cognizant of the fact that others won&#8217;t like our conventions, so we&#8217;re striving to make it possible for you to write/add/modify conventions on a project by project basis.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Riley</title>
		<link>http://lostechies.com/joshuaflanagan/2010/01/18/fubumvc-define-your-actions-your-way/#comment-86</link>
		<dc:creator>Ryan Riley</dc:creator>
		<pubDate>Mon, 18 Jan 2010 20:41:53 +0000</pubDate>
		<guid isPermaLink="false">/blogs/joshuaflanagan/archive/2010/01/18/fubumvc-define-your-actions-your-way.aspx#comment-86</guid>
		<description>Would it be possible to define a MoviesEndpoint and a MovieEndpoint with the following:
Route                            Action
--------------------------  -----------------------------------
[POST] /movies             MoviesEndpoint.Post()
[GET] /movies               MoviesEndpoint.Get()
[DELETE] /movie/1         MovieEndpoint.Delete(1)

Also, what about returning different media types based on either a &#039;.json&#039; convention or by setting the EXPECTS header to text/json?</description>
		<content:encoded><![CDATA[<p>Would it be possible to define a MoviesEndpoint and a MovieEndpoint with the following:<br />
Route                            Action<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;  &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
[POST] /movies             MoviesEndpoint.Post()<br />
[GET] /movies               MoviesEndpoint.Get()<br />
[DELETE] /movie/1         MovieEndpoint.Delete(1)</p>
<p>Also, what about returning different media types based on either a &#8216;.json&#8217; convention or by setting the EXPECTS header to text/json?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
