Patch #10571

Project identifiers missing in API output

Added by Christian Rishøj almost 10 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:REST API
Target version:-

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.

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

Also available in: Atom PDF