Hi Colin,

Thanks for trying to help.  Answer further down.

On 9/5/2013 8:31 PM, Colin Law wrote:
On 9 May 2013 10:08, Mohit Sindhwani <[email protected]> wrote:
Hi!  I'm trying to build a small client that connects to Redmine to get the
list of users attached to a project.

Following the AR/ Rails conventions, I can get back all projects as:
http://redmine/projects.xml
http://redmine/users.xml

It is not clear to me what your question is.  Can you give a specific
example (including the relationships between models) of exactly what
you are trying to do?

Colin


I'm actually writing a C++ client that accesses information using HTTP from a Rails ActiveResource application (Redmine). I can use URLs like "http://redmine/projects.xml"; and "http://redmine/users.xml"; to get full lists of projects and users. The relationship between these 2 resources is a HABTM. I'm trying to figure out if there is a default URL (i.e., Rails convention) at which I could GET the relationships so that I can figure out which users belong to which projects... or figure out which users belong to a specific project. Since I'm doing this from C++ and not from a Ruby client, I am trying to figure out the URL, method and parameters that I need to provide to get this information.

Hope it's clearer now?

Given how much trouble I'm having explaining this, maybe, I should stop searching and start reading the source for Redmine..

Best Regards,
Mohit.

--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to