<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Routing in ASP.NET Web API</title><link>http://asp.net</link><pubDate>Thu, 07 Feb 2013 16:59:03 GMT</pubDate><generator>umbraco</generator><description>Comments for Routing in ASP.NET Web API</description><language>en</language><atom:link href="http://asp.net/rss/comments/37099" rel="self" type="application/rss+xml" /><item><title>Comment Posted by martooo</title><link>http://asp.net/web-api/overview/web-api-routing-and-actions/routing-in-aspnet-web-api</link><pubDate>Mon, 20 Feb 2012 10:20:52 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000014886</guid><description><![CDATA[ <p>Great stuff! Thanks a lot for the article.</p><p></p><p>So, what is the best practice to model this:</p><p>PurchaseOrder</p><p>PurchaseOrderLineItem</p><p></p><p>One purchase order can have multiple line items. How can I get all the line items under one specific purchase order? How to get a single line item provided that I know the line item id? What will the webapi controller look like?</p><p></p><p>As above mentioned, action is not recommended, I am really wondering to know how to get it done.</p><p></p><p>Thanks</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/martooo.jpg?forceidenticon=false&amp;dt=635071713000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by xminder</title><link>http://asp.net/web-api/overview/web-api-routing-and-actions/routing-in-aspnet-web-api</link><pubDate>Fri, 02 Mar 2012 17:44:29 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015003</guid><description><![CDATA[ <p>Great work! Please, how can I do routing like:</p><p></p><p> GET /user/{userId}/comments </p><p></p><p>This should get comments posted my a user with specified user id. </p><p></p><p>Thanks </p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/xminder.jpg?forceidenticon=false&amp;dt=635071713000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by patil.pravin31</title><link>http://asp.net/web-api/overview/web-api-routing-and-actions/routing-in-aspnet-web-api</link><pubDate>Tue, 20 Mar 2012 08:51:27 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015163</guid><description><![CDATA[ <p>Awesome article. You have put the contents nicely, so that even a beginner can understand the routing concept. Great job Mike...</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/patil.pravin31.jpg?forceidenticon=false&amp;dt=635071713000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by ehdv</title><link>http://asp.net/web-api/overview/web-api-routing-and-actions/routing-in-aspnet-web-api</link><pubDate>Tue, 10 Apr 2012 08:49:40 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015294</guid><description><![CDATA[ <p>Why would a URL like the following be considered an action and therefore not RESTful?</p><p></p><p>/api/business/{id}/reviews</p><p></p><p>As best I can tell, this is a noun which can then be gotten, posted to, have a delete or a put applied, etcetera - it&#39;s simply a child noun of the parent.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/ehdv.jpg?forceidenticon=false&amp;dt=635071713000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by digitalpacman</title><link>http://asp.net/web-api/overview/web-api-routing-and-actions/routing-in-aspnet-web-api</link><pubDate>Thu, 28 Jun 2012 13:49:37 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015874</guid><description><![CDATA[ <p>Why did you remove UriTemplate()? I feel like that implementation was the best idea. Developers could use that as the connection between clients and code, because the code and client are disconnected systems and they need an easy way to locate the referred action.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/digitalpacman.jpg?forceidenticon=false&amp;dt=635071713000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by carluman</title><link>http://asp.net/web-api/overview/web-api-routing-and-actions/routing-in-aspnet-web-api</link><pubDate>Thu, 12 Jul 2012 12:22:15 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015962</guid><description><![CDATA[ <p>Thanks, this helped a lot!  I knew I was close but this got me the rest of the way.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/carluman.jpg?forceidenticon=false&amp;dt=635071713000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by pratap reddy</title><link>http://asp.net/web-api/overview/web-api-routing-and-actions/routing-in-aspnet-web-api</link><pubDate>Fri, 13 Jul 2012 06:07:49 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015968</guid><description><![CDATA[ <p>Hi Mike</p><p>                  I am a MVC 3 developer. In real time scenarios, one controller will be dealing with multiple views and View1 may call a method GetAdminUsers() and View2 may call GetCommonUsers(). </p><p>In this scenario, how we can handle with WEB-API. </p><p>I completely understood, using WEB-API, the service calls from JQuery is a big win, but what about application implementation perspective.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/pratap%20reddy.jpg?forceidenticon=false&amp;dt=635071713000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by sinedyip</title><link>http://asp.net/web-api/overview/web-api-routing-and-actions/routing-in-aspnet-web-api</link><pubDate>Fri, 13 Jul 2012 14:54:25 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015974</guid><description><![CDATA[ <p>Thank you Mike Wasson nice article</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/sinedyip.jpg?forceidenticon=false&amp;dt=635071713000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by EricCoffman</title><link>http://asp.net/web-api/overview/web-api-routing-and-actions/routing-in-aspnet-web-api</link><pubDate>Sun, 15 Jul 2012 09:14:06 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015980</guid><description><![CDATA[ <p>I am with pratap reddy, how to use multiple GETs. My get method needs to handle getting a record by Id, by a review period, by status, etc.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/EricCoffman.jpg?forceidenticon=false&amp;dt=635071713000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by pretzelb</title><link>http://asp.net/web-api/overview/web-api-routing-and-actions/routing-in-aspnet-web-api</link><pubDate>Tue, 17 Jul 2012 13:42:45 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000015994</guid><description><![CDATA[ <p>I will echo what a few others are touching on, this seems to indicate that webapi cannot handle what was previously considered RESTful. If you look back in 2008 this MSDN article (<a rel="nofollow" href="http://msdn.microsoft.com/en-us/library/dd203052.aspx" target="_blank">msdn.microsoft.com/</a>) had some good information on REST. I&#39;m not sure how you can implement something like this with webapi: </p><p></p><p>users/{username}/bookmarks?tag={tag}</p><p></p><p>If you can, then it would be great to update the article.</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/pretzelb.jpg?forceidenticon=false&amp;dt=635071713000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by tayebi</title><link>http://asp.net/web-api/overview/web-api-routing-and-actions/routing-in-aspnet-web-api</link><pubDate>Mon, 03 Sep 2012 07:36:51 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016367</guid><description><![CDATA[ <p>Thanks Mike, it helps a lot</p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/tayebi.jpg?forceidenticon=false&amp;dt=635071713000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by yrshaikh</title><link>http://asp.net/web-api/overview/web-api-routing-and-actions/routing-in-aspnet-web-api</link><pubDate>Mon, 08 Oct 2012 01:50:58 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016588</guid><description><![CDATA[ <p>how to handle multiple gets in cases such as this <a rel="nofollow" href="http://stackoverflow.com/questions/12775887/routing-in-asp-net-mvc-4-and-web-api" target="_blank">stackoverflow.com/</a></p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/yrshaikh.jpg?forceidenticon=false&amp;dt=635071713000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by amit pachahara</title><link>http://asp.net/web-api/overview/web-api-routing-and-actions/routing-in-aspnet-web-api</link><pubDate>Thu, 06 Dec 2012 08:11:37 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000016948</guid><description><![CDATA[ <p>Thanks Mike. This article really clears all my doubts on Web API routing. </p><p>Really i am very thankful to you </p>]]></description><enclosure length="0" type="image/png" url="http://i3.asp.net/avatar/amit%20pachahara.jpg?forceidenticon=false&amp;dt=635071713000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by itanex</title><link>http://asp.net/web-api/overview/web-api-routing-and-actions/routing-in-aspnet-web-api</link><pubDate>Thu, 07 Feb 2013 16:59:03 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018377</guid><description><![CDATA[ <p>Your ProductsController get method returns an HttpResponseMessage but in appearance should return a ThumbnailImage.</p><p></p><p>If you return a message object instead of the dataobject that your method is handling does this not break the content negotiation principle of WebAPI?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/itanex.jpg?forceidenticon=false&amp;dt=635071713000000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>