Active
Project:
Redmine API
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Jul 2011 at 23:29 UTC
Updated:
4 Jul 2011 at 23:29 UTC
There are undocumented features of the REST API, such as GET /users/3.json?include=memberships, which returns additional detail about the project roles and memberships of a user.
Redmine API module's API-consumption functions don't allow calling the REST API in this way. Once these undocumented features are better documented we should extend Redmine API module to allow usage of them.
In the meantime, the data can be accessed for all users like this; $users = redmine_users(array('include' => 'memberships');
Or for one user (user ID 3 in this example) like this:
$user = rest_api_query('redmine', 'users', 'load', 3, FALSE)->set_parameter('include', 'memberships')->alter()->execute()->debug()->result->user;
(->alter() and ->debug() are not strictly necessary.)