Feature #9725
closedManaging memberships and list existing roles via REST api
Description
For an application we are developping, we need to be able to manage memberships with the REST api.
Attached is a patch that enables :
- access to the members of a project using the ?include=members option of the project's interface
- get and edit membership informations with GET /member/{id}.xml and PUT /member/{id}.xml
- add and remove memberships with POST /projects/{id}/members.xml and DELETE /member/{id}.xml
- list roles with GET /roles.xml and get role informations with GET /role/{id}.xml
A member description takes this form (consistent with the web interface) (to POST to /projects/{id}/members.xml) :
<member>
<role_ids type=\"array\">
<role_id>3</role_id>
<role_id>5</role_id>
</role_ids>
<user_ids type=\"array\">
<user_id>1</user_id>
</user_ids>
</member>
For the edition :
<member>
<role_ids type="array">
<role_id name="Manager ">4</role_id>
<role_id name="Rapporteur ">5</role_id>
</role_ids>
</member>
Can someone review the patch ? If possible, we would like this feature to be added to the next release.
Thanks in advance
Pierre-Yves
Files
Related issues