<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Bloggitation comments on [ANN] Restolog - RESTful blog example</title>
    <link>http://typo.onxen.info/</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Bloggitation comments</description>
    <item>
      <title>"[ANN] Restolog - RESTful blog example": comment by Benjamin</title>
      <description>&lt;p&gt;It&amp;#8217;s nice to get  REST  examples. Blog is in my feeder now too, good updates here. &amp;#8211; ben @ http://rubyonrailsblog.com/&lt;/p&gt;</description>
      <pubDate>Wed, 16 Aug 2006 10:59:07 PDT</pubDate>
      <guid>http://typo.onxen.info/articles/2006/08/10/ann-restolog-restful-blog-example#comment-14</guid>
      <link>http://typo.onxen.info/articles/2006/08/10/ann-restolog-restful-blog-example#comment-14</link>
    </item>
    <item>
      <title>"[ANN] Restolog - RESTful blog example" by stoyan</title>
      <description>&lt;p&gt;I modified a little the &lt;a href="http://randomoracle.com/stuff/RestBlog.tar.gz"&gt;original Alisdair McDiarmid&amp;#8217;s RestBlog sources&lt;/a&gt; and
created very simple blog system. Made an announce to the Rails ML. The copy of it follows:&lt;/p&gt;


Very simple blog system based on &lt;span class="caps"&gt;REST&lt;/span&gt;/CRUD ideas. Sources (all credits
going to the authors, i just combined their work):
	&lt;ul&gt;
	&lt;li&gt;&lt;a href="http://randomoracle.com/stuff/RestBlog.tar.gz"&gt;RestBlog by Alisdair McDiarmid&lt;/a&gt; &lt;/li&gt;
		&lt;li&gt;&lt;a href="http://svn.techno-weenie.net/projects/plugins/restful_authentication/"&gt;restful_authentication plugin by techno-weenie&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href="http://www.thelucid.com/articles/2006/07/26/simply-restful-the-missing-action" title="delete  without JavaScript enabled"&gt;graseful delete degradation&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;The purpose is mostly proof of concept, not typo/mephisto etc. competition.&lt;/p&gt;

&lt;h2&gt;Requirements&lt;/h2&gt;


	&lt;ul&gt;
	&lt;li&gt;ruby-1.8.4 (i&amp;#8217;m using mongrel, do you? ;)  )&lt;/li&gt;
		&lt;li&gt;sqlite3&lt;/li&gt;
		&lt;li&gt;edge rails&lt;/li&gt;
	&lt;/ul&gt;


	&lt;h2&gt;Features&lt;/h2&gt;


	&lt;ul&gt;
	&lt;li&gt;Pretty &lt;span class="caps"&gt;CRU&lt;/span&gt;Ded &amp;#8211; using only standard action names
(index,show,new,create,edit,update,destroy)&lt;/li&gt;
		&lt;li&gt;tags taxonomy &amp;#8211; more flexible than categories&lt;/li&gt;
		&lt;li&gt;graceful delete degradation &amp;#8211; you can delete without JS enabled&lt;/li&gt;
		&lt;li&gt;Multiuser:
	&lt;ul&gt;
	&lt;li&gt;only logged in users can post&lt;/li&gt;
		&lt;li&gt;user can delete only his own articles&lt;/li&gt;
		&lt;li&gt;user can delete only comments to his own articles&lt;/li&gt;
		&lt;li&gt;&amp;#8216;admin&amp;#8217; user can delete everything&lt;/li&gt;
		&lt;li&gt;only &amp;#8216;admin&amp;#8217; user can delete tags&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
		&lt;li&gt;blogs per tag ( &lt;em&gt;/tags/?&lt;/em&gt; )&lt;/li&gt;
		&lt;li&gt;blogs per user ( &lt;em&gt;/users/?&lt;/em&gt; )&lt;/li&gt;
		&lt;li&gt;&lt;span class="caps"&gt;RSS2&lt;/span&gt;.0/Atom feeds with suitable mime-types ( &lt;em&gt;/articles.atom&lt;/em&gt; and
&lt;em&gt;/articles.rss&lt;/em&gt; )&lt;/li&gt;
		&lt;li&gt;Some &lt;span class="caps"&gt;REST&lt;/span&gt; services (more will come):
	&lt;ul&gt;
	&lt;li&gt;all articles ( &lt;em&gt;/articles.xml&lt;/em&gt; )&lt;/li&gt;
		&lt;li&gt;specific article ( &lt;em&gt;/articles/?.xml&lt;/em&gt; )&lt;/li&gt;
		&lt;li&gt;tags list ( &lt;em&gt;/tags.xml&lt;/em&gt; )&lt;/li&gt;
		&lt;li&gt;still missing: users list, create/update (authentication)
articles, articles per tag and per user, delete (hm, is it good to
make delete web service at all?)&lt;/li&gt;
	&lt;/ul&gt;&lt;/li&gt;
	&lt;/ul&gt;


&lt;span class="caps"&gt;REST &lt;/span&gt;Problems (for me, not in general ;)  ):
	&lt;ul&gt;
	&lt;li&gt;how to exclude fields from the &lt;span class="caps"&gt;XML&lt;/span&gt; output? For example &lt;em&gt;@users.to_xml&lt;/em&gt;
will include also the password field in the output.&lt;/li&gt;
		&lt;li&gt;how to deal with the action needed authentication &amp;#8211; like
create/update &amp;#8211; usual way is to include some token in the &lt;span class="caps"&gt;URL&lt;/span&gt;, but how
to do it with Rails?&lt;/li&gt;
	&lt;/ul&gt;


	&lt;h2&gt;Installation&lt;/h2&gt;


	&lt;ul&gt;
	&lt;li&gt;Get the sources:
	&lt;ul&gt;
	&lt;li&gt;&lt;a href="http://bgjap.net/code/ruby/ror/restolog-1.1.tgz"&gt;tarballs&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href="http://code.google.com/p/restolog/source"&gt;SVN&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
		&lt;li&gt;untar if needed&lt;/li&gt;
		&lt;li&gt;cd to the sources directory&lt;/li&gt;
		&lt;li&gt;Bind it to the Edge Rails, create the database and start it:&lt;/li&gt;
	&lt;/ul&gt;


&lt;pre&gt;
 rails freeze_edge
 rake migrate
 server/start
&lt;/pre&gt;

	&lt;ul&gt;
	&lt;li&gt;Create the user with login &lt;em&gt;&amp;#8217;admin&amp;#8217;&lt;/em&gt; &amp;#8211; power user, can delete
everybody posts, comments, tags etc. (hm, maybe &lt;em&gt;&amp;#8217;rake bootstrap&amp;#8217;&lt;/em&gt; step
will be good)&lt;/li&gt;
		&lt;li&gt;Logout and create usual user&lt;/li&gt;
		&lt;li&gt;Start posting articles&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;Still a lot is missing (user management, password change, pagination,
text markup &amp;#8211; textile etc.), but I think it&amp;#8217;s pretty good starting
point.&lt;/p&gt;</description>
      <pubDate>Thu, 10 Aug 2006 20:30:00 PDT</pubDate>
      <guid>&lt;a href="/articles/2006/08/10/ann-restolog-restful-blog-example"&gt;[ANN] Restolog - RESTful blog example&lt;/a&gt;</guid>
      <link>&lt;a href="/articles/2006/08/10/ann-restolog-restful-blog-example"&gt;[ANN] Restolog - RESTful blog example&lt;/a&gt;</link>
    </item>
  </channel>
</rss>
