<?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: HTTP method primer for RESTful web services</title>
	<atom:link href="http://watchitlater.com/blog/2009/11/http-method-primer-for-restful-web-services/feed/" rel="self" type="application/rss+xml" />
	<link>http://watchitlater.com/blog/2009/11/http-method-primer-for-restful-web-services/</link>
	<description>A reluctant foray into the world of blogging.</description>
	<lastBuildDate>Mon, 06 Sep 2010 11:01:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Prodis a.k.a. Fernando Hamasaki de Amorim</title>
		<link>http://watchitlater.com/blog/2009/11/http-method-primer-for-restful-web-services/comment-page-1/#comment-5158</link>
		<dc:creator>Prodis a.k.a. Fernando Hamasaki de Amorim</dc:creator>
		<pubDate>Tue, 17 Nov 2009 11:26:53 +0000</pubDate>
		<guid isPermaLink="false">http://watchitlater.com/blog/?p=72#comment-5158</guid>
		<description>Good summary.</description>
		<content:encoded><![CDATA[<p>Good summary.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://watchitlater.com/blog/2009/11/http-method-primer-for-restful-web-services/comment-page-1/#comment-5105</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Wed, 11 Nov 2009 08:10:13 +0000</pubDate>
		<guid isPermaLink="false">http://watchitlater.com/blog/?p=72#comment-5105</guid>
		<description>Stephen, you are correct that the application should only have one representation of myweblog. That&#039;s why I&#039;m assuming that I want to POST the representation of a weblog to a factory resource at /weblogs/myweblog (which is the single instance). The factory resource creates a new weblog and assigns it the id SS0093WSA. The response is then a 201 with a &quot;Location&quot; header /weblogs/myweblog/entries/SS0093WSA, which is the URI to view the newly created weblog entry.

I could POST to /weblogs/myweblog/entries to create a new weblog which would be equally as valid and probably has less *magic* in it since it is a bit more clear that posting to /weblogs/myweblog/entries creates a new weblog entry. However in terms of subordinate resources as long as the generated resource is addressed somewhere under /weblogs/myweblog I can use the service at /weblogs/myweblog as a resource factory, its just less clear that it is a resource factory.

Conceptually if you perform a HTTP GET on /weblogs/myweblog you could get a representation of all weblog entries, or a redirect to /weblogs/myweblog/entries to get a list of all entries, or simply a 405 (Method Not Allowed) with an &quot;Allow&quot; header stating that you can only PUT requests are permitted.</description>
		<content:encoded><![CDATA[<p>Stephen, you are correct that the application should only have one representation of myweblog. That&#8217;s why I&#8217;m assuming that I want to POST the representation of a weblog to a factory resource at /weblogs/myweblog (which is the single instance). The factory resource creates a new weblog and assigns it the id SS0093WSA. The response is then a 201 with a &#8220;Location&#8221; header /weblogs/myweblog/entries/SS0093WSA, which is the URI to view the newly created weblog entry.</p>
<p>I could POST to /weblogs/myweblog/entries to create a new weblog which would be equally as valid and probably has less *magic* in it since it is a bit more clear that posting to /weblogs/myweblog/entries creates a new weblog entry. However in terms of subordinate resources as long as the generated resource is addressed somewhere under /weblogs/myweblog I can use the service at /weblogs/myweblog as a resource factory, its just less clear that it is a resource factory.</p>
<p>Conceptually if you perform a HTTP GET on /weblogs/myweblog you could get a representation of all weblog entries, or a redirect to /weblogs/myweblog/entries to get a list of all entries, or simply a 405 (Method Not Allowed) with an &#8220;Allow&#8221; header stating that you can only PUT requests are permitted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen Chu</title>
		<link>http://watchitlater.com/blog/2009/11/http-method-primer-for-restful-web-services/comment-page-1/#comment-5102</link>
		<dc:creator>Stephen Chu</dc:creator>
		<pubDate>Tue, 10 Nov 2009 19:57:50 +0000</pubDate>
		<guid isPermaLink="false">http://watchitlater.com/blog/?p=72#comment-5102</guid>
		<description>Good, succinct summary. One question: did you mean &quot;POST /weblogs/myweblog/*entries*&quot; to create a new entry for myweblog instead? Because to me, POST-ing to /weblogs/myweblog is to create the (singular) resource &quot;myweblog&quot;. By singular, I mean the application can only have at max one instance of myweblog. (analogous to map.resource (singular) in Rails).</description>
		<content:encoded><![CDATA[<p>Good, succinct summary. One question: did you mean &#8220;POST /weblogs/myweblog/*entries*&#8221; to create a new entry for myweblog instead? Because to me, POST-ing to /weblogs/myweblog is to create the (singular) resource &#8220;myweblog&#8221;. By singular, I mean the application can only have at max one instance of myweblog. (analogous to map.resource (singular) in Rails).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
