<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0">
			<channel>
			<title>Application Generation - REST</title>
			<link>http://www.pbell.com/index.cfm</link>
			<description>A series of occasional musings on architecting, securing, optimizing and generating web based applications. By Peter Bell.</description>
			<language>en-us</language>
			<pubDate>Tue, 18 Jun 2013 20:27:29 -0400</pubDate>
			<lastBuildDate>Wed, 15 Nov 2006 22:01:00 -0400</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>test@test.com</managingEditor>
			<webMaster>test@test.com</webMaster>
			
			
			
			
			
			<item>
				<title>A REST-like Administrative API</title>
				<link>http://www.pbell.com/index.cfm/2006/11/15/A-RESTlike-Administrative-API</link>
				<description>
				
				Most of the websites I create require content management, with pages that define a context for multiple dynamic content areas, so on the whole a &lt;a href=&quot;http://en.wikipedia.org/wiki/Representational_State_Transfer&quot;&gt;REST&lt;/a&gt; style interface with unique URIs for individual content items and actions on them aren&apos;t of much use. 

However, for the associated administrative system for managing content items, a REST-like API (not religiously RESTful - see my &lt;a href=&quot;http://www.pbell.com/index.cfm/2006/11/15/An-Appropriate-level-of-REST&quot;&gt;earlier post&lt;/a&gt; for an explanation of why) would solve a bunch of problems. It would make it easy to define the URIs for any given action in a consistent way across applications and would also allow for the testing and calling of ALL model methods using a single, very simple controller. Over time I could also add support for multiple response formats so this could be the basis for everything from lightweight scaffolding to a remote API for Flex applications.

The first step was to come up with the necessary URI templates for defining access to both single objects and collections of 0..n objects (comparable to the difference between a DAO and a Gateway). I decided on different templates for the two to make it clear whether you were operating on a single object or a collection . . .
				 [More]
				</description>
				
				<category>REST</category>
				
				<pubDate>Wed, 15 Nov 2006 22:01:00 -0400</pubDate>
				<guid>http://www.pbell.com/index.cfm/2006/11/15/A-RESTlike-Administrative-API</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>An Appropriate level of REST</title>
				<link>http://www.pbell.com/index.cfm/2006/11/15/An-Appropriate-level-of-REST</link>
				<description>
				
				I&apos;ve been thinking a lot about URLs and URIs recently. &lt;a href=&quot;http://en.wikipedia.org/wiki/Representational_State_Transfer&quot;&gt;REST&lt;/a&gt; is a &lt;strike&gt;religion&lt;/strike&gt; approach that focuses on using unique URLs for interacting with content items. 

REST purists will tell you that you only need &lt;a href=&quot;http://www.pbell.com/index.cfm/2006/7/14/Verb-Hunting-Four-Just-Isnt-Enough&quot;&gt;four verbs&lt;/a&gt; (corresponding to CRU and D) and that to get the caching/performance benefits of REST, all requests must be completely stateless (no cookies, sessions or other user specific identifiers - if you want personalized content you should create one URI per user for that content item).

Realists will point out that trying to hack together a real world system with those limitations (especially one that needs more than just GETs) isn’t worth the trouble and that a &quot;REST-like&quot; approach makes more sense.

In case you hadn&apos;t guessed, I&apos;m a &quot;REST realist&quot;. &lt;a href=&quot;http://jimonwebgames.com/articles/2006/06/26/dont-say-crud-say-fucd&quot;&gt;David Heinemeier Hansson&lt;/a&gt; hasn&apos;t been able to convince me that you only need four verbs. Anyone else out there using a strict four-verb syntax successfully for a complex system? I get that you could turn additional verbs into &quot;undiscovered objects&quot; but just don&apos;t see the point. Any thoughts?
				
				</description>
				
				<category>REST</category>
				
				<pubDate>Wed, 15 Nov 2006 21:48:00 -0400</pubDate>
				<guid>http://www.pbell.com/index.cfm/2006/11/15/An-Appropriate-level-of-REST</guid>
				
			</item>
			
		 	
			</channel></rss>
	

