Project

General

Profile

Actions

Patch #10571

open

Project identifiers missing in API output

Added by Christian Rishøj about 12 years ago.

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

0%

Estimated time:

Description

Currently, only project IDs and names are included in the API membership listing for a user:

    <membership>
      <project identifier="website" name="Company Website" id="11"/>
      <roles type="array">
        <role name="Manager" id="3"/>
        <role name="Developer" id="4"/>
        <role name="Reporter" id="5"/>
      </roles>
    </membership>

Project identifiers ought to be included, e.g. for allowing something like grack to authenticate access to source code repositories named after project identifiers.

The simple patch adds project identifiers to the API output.

Note that the change might break third party tools which rely on naive pattern matching of the API XML data (rather than properly parsing the XML). This should not be Redmine's concern, though.


Files

output-identifiers-git.diff (985 Bytes) output-identifiers-git.diff Christian Rishøj, 2012-03-30 12:17

No data to display

Actions

Also available in: Atom PDF