Rails API best practices

Hi,

Is there a book or screencast or documentation that provides best
practices for creating an API for a RoR application?

I have to build an API from scratch and I have no idea where to start.


M.

If you haven’t read the docs for ActiveResource, I’d start there.

If you haven’t read the docs for ActiveResource, I’d start there.

One of the tasks of my project is that I have to create a PHP library
that people can use to connect to this application.

Is there a library that implements a PHP - RoR XML connection?


M.

Hi Marcelo,

Marcelo B. wrote:

Is there a book or screencast or documentation that provides
best practices for creating an API for a RoR application?

I have to build an API from scratch and I have no idea where
to start.

I highly recommend “RESTful Web Services”. Amazon has it
http://www.amazon.com/RESTful-Web-Services-Leonard-Richardson/dp/0596529260/
ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1223669754&sr=1-1

Best regards,
Bill

I haven’t seen one, but I haven’t looked. ActiveResource is (well,
kind of) an object mapping framework from RoR to XML. I would start
with the XML it generates, and build the PHP from there.