Rails ActiveResource URLs for searches including habtm relationships

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

and do searches such as:
http://redmine/issues.xml?limit=10&project_id=3

This works when it involves an attribute or belongs_to criteria.

Can someone help me understand the URL that should be used when trying to search on a HABTM criteria?

For example, I want to know all the users on a project. But that relationship is achieved through a HABTM table. Is there some default Rails routing that covers this scenario?

I tried searching online but I'm just not being able to formulate a query that returns useful results.

Thanks & Best Regards,
Mohit.

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

Hi Colin,

Thanks for trying to help. Answer further down.

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.

I think you will have to look at the Redmine docs, unless someone here
knows the answer.

Colin

Thanks Colin.