Patch #10571

Project identifiers missing in API output

Added by Christian Rishøj over 10 years ago.

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


Category:REST API
Target version:-


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

      <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"/>

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