      allowed_methods = ('GET', 'PUT', 'DELETE')
      model = BlogPost
      fields = BLOG_POST_FIELDS
  
  
  ##### Comment Resources #####
  
  COMMENT_FIELDS = ('username', 'comment', 'created', 'rating', 'absolute_url', 'blogpost_url')
  
  class CommentList(QueryModelResource):
      """A resource which lists all existing comments for a given blog post."""
      allowed_methods = ('GET', )
      model = Comment
      fields = COMMENT_FIELDS
  
  class CommentCreator(ModelResource):
      """A resource with which blog comments may be created for a given blog post."""
      allowed_methods = ('POST',)
      model = Comment
      fields = COMMENT_FIELDS
  
  class CommentInstance(ModelResource):
      """A resource which represents a single comment."""
 
</s> remove class BlogPostCreator(ModelResource):
    """A resource with which blog posts may be created."""
    allowed_methods = ('POST',)
 </s> add class BlogPostRoot(RootModelResource):
    """A resource with which lists all existing blog posts and creates new blog posts."""
    allowed_methods = ('GET', 'POST',) </s> remove class BlogPostList(QueryModelResource):
    """A resource which lists all existing blog posts."""
    allowed_methods = ('GET', )
    model = BlogPost
    fields = BLOG_POST_FIELDS
 </s> add  </s> remove ##### Root Resource #####

class RootResource(Resource):
    """This is the top level resource for the API.
    All the sub-resources are discoverable from here."""
    allowed_methods = ('GET',)

    def get(self, request, *args, **kwargs):
        return Response(status.HTTP_200_OK,
                        {'blog-posts': self.reverse(BlogPostList),
                         'blog-post': self.reverse(BlogPostCreator)})


##### Blog Post Resources #####

 </s> add  </s> remove         return ('blogpost.views.CommentList', (), {'blogpost_id': self.key})

    @property
    @models.permalink
    def comment_url(self):
        """Link to a resource which can create a comment for this blog post."""
        return ('blogpost.views.CommentCreator', (), {'blogpost_id': self.key})
 </s> add         return ('blogpost.views.CommentRoot', (), {'blogpost_id': self.key})
class CommentRoot(RootModelResource):
    """A resource which lists all existing comments for a given blog post, and creates new blog comments for a given blog post."""
    allowed_methods = ('GET', 'POST',)
      allowed_methods = ('GET', 'PUT', 'DELETE')
      model = BlogPost
      fields = BLOG_POST_FIELDS
  
class CommentRoot(RootModelResource):
    """A resource which lists all existing comments for a given blog post, and creates new blog comments for a given blog post."""
    allowed_methods = ('GET', 'POST',)
class CommentRoot(RootModelResource):
    """A resource which lists all existing comments for a given blog post, and creates new blog comments for a given blog post."""
    allowed_methods = ('GET', 'POST',)
class CommentRoot(RootModelResource):
    """A resource which lists all existing comments for a given blog post, and creates new blog comments for a given blog post."""
    allowed_methods = ('GET', 'POST',)
class CommentRoot(RootModelResource):
    """A resource which lists all existing comments for a given blog post, and creates new blog comments for a given blog post."""
    allowed_methods = ('GET', 'POST',)
class CommentRoot(RootModelResource):
    """A resource which lists all existing comments for a given blog post, and creates new blog comments for a given blog post."""
    allowed_methods = ('GET', 'POST',)
class CommentRoot(RootModelResource):
    """A resource which lists all existing comments for a given blog post, and creates new blog comments for a given blog post."""
    allowed_methods = ('GET', 'POST',)
class CommentRoot(RootModelResource):
    """A resource which lists all existing comments for a given blog post, and creates new blog comments for a given blog post."""
    allowed_methods = ('GET', 'POST',)
class CommentRoot(RootModelResource):
    """A resource which lists all existing comments for a given blog post, and creates new blog comments for a given blog post."""
    allowed_methods = ('GET', 'POST',)
class CommentRoot(RootModelResource):
    """A resource which lists all existing comments for a given blog post, and creates new blog comments for a given blog post."""
    allowed_methods = ('GET', 'POST',)
class CommentRoot(RootModelResource):
    """A resource which lists all existing comments for a given blog post, and creates new blog comments for a given blog post."""
    allowed_methods = ('GET', 'POST',)
class CommentRoot(RootModelResource):
    """A resource which lists all existing comments for a given blog post, and creates new blog comments for a given blog post."""
    allowed_methods = ('GET', 'POST',)
class CommentRoot(RootModelResource):
    """A resource which lists all existing comments for a given blog post, and creates new blog comments for a given blog post."""
    allowed_methods = ('GET', 'POST',)
class CommentRoot(RootModelResource):
    """A resource which lists all existing comments for a given blog post, and creates new blog comments for a given blog post."""
    allowed_methods = ('GET', 'POST',)
class CommentRoot(RootModelResource):
    """A resource which lists all existing comments for a given blog post, and creates new blog comments for a given blog post."""
    allowed_methods = ('GET', 'POST',)
      model = Comment
      fields = COMMENT_FIELDS
  
  class CommentInstance(ModelResource):
      """A resource which represents a single comment."""
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 Lots of docs, trying to tidy up examples... 
examples/blogpost/views.py