Project

General

Profile

Actions

Feature #9725

closed

Managing memberships and list existing roles via REST api

Added by Pierre-Yves Ronot over 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate

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

patch_membership (11 KB) patch_membership REST membership patch Pierre-Yves Ronot, 2011-12-05 13:19
patch_membership (11 KB) patch_membership Up to date patch Pierre-Yves Ronot, 2011-12-12 18:54
patch_membership (11.7 KB) patch_membership Patch for the 1.3 stable branch. Pierre-Yves Ronot, 2011-12-14 16:43

Related issues

Is duplicate of Redmine - Feature #7420: Rest API for projects members ClosedJean-Philippe Lang2011-01-24

Actions
Actions

Also available in: Atom PDF