> Thanks for the many comments.  A revised version is now up at:
>
> http://microformats.org/wiki/rest/urls
>
> Specifically:
>
> http://microformats.org/wiki/rest/urls#Methods
> http://microformats.org/wiki/rest/urls#Response_Codes

Don't forget the 422 Unprocessable Entity status code.  You'd use
it when the request is syntactically valid, but still contains
invalid information.  An example of this would be if someone sent
an valid XML document, but one of the elements contained data that
didn't meet the validates_* constraints in a model.

I usually reserve 400 Bad Request for the most generic of errors
not covered by any other 4xx status codes, which is fairly rarely
in practice.

> Please let me know if there's anything else, especially links to
> additional relevant resources.

How about mentioning conventions for searching using query strings
that I've seen in ActiveResource?  Any extra params you send through
to the find() method are added to the query string.  Here's an article
exploring different conventions for search:

   http://woss.name/2007/07/22/convention-for-restful-search-in-rails/

-- 

Thanks,

Dan
__________________________________________________________________

Dan Kubb
Autopilot Marketing Inc.

Email: [EMAIL PROTECTED]
Phone: 1 (604) 820-0212
Web:   http://autopilotmarketing.com/
__________________________________________________________________


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to