Feature #8545

"get projects" REST API response should handle "include=trackers" parameter

Added by Alex Last over 6 years ago. Updated over 3 years ago.

Status:ClosedStart date:2011-06-06
Priority:NormalDue date:
Assignee:Jean-Baptiste Barth% Done:

0%

Category:REST API
Target version:-
Resolution:Duplicate

Description

http://myserver:3000/projects.xml?limit=25&offset=0&include=trackers
- this returns list of projects without trackers

is this intended? maybe the REST API can add some comment to the response like "your xxx parameter was ignored because..."

IncludeTracker.diff Magnifier (545 Bytes) Preethi Sriram, 2012-01-24 22:31


Related issues

Duplicates Redmine - Patch #17602: Include enabled modules in projects API Closed

History

#1 Updated by Etienne Massip over 6 years ago

  • Tracker changed from Defect to Feature

It's not handled.

#2 Updated by Etienne Massip over 6 years ago

  • Subject changed from "get projects" REST API response ignores "include=trackers" parameter to "get projects" REST API response should handle "include=trackers" parameter
  • Target version set to Candidate for next major release

#3 Updated by Alex Last almost 6 years ago

can we include this into Redmine 1.3.1?

#4 Updated by Preethi Sriram almost 6 years ago

Patch is attached to include trackers in get projects api
Test-
http://myserver:3000/projects.xml?limit=25&offset=0&include=trackers
will include tracker information for each project.

#5 Updated by Alex Last over 5 years ago

what/when is the "next major release"?

#6 Updated by Alex Last over 3 years ago

let's merge this into "master"?

#7 Updated by Jean-Baptiste Barth over 3 years ago

  • Assignee set to Jean-Baptiste Barth

Do you have a use case where it's useful to get trackers for all projects ? If there are valid use cases I can commit the patch but it needs some tests first.

Fwiw the information can already be retrieved for a single project with the exact same parameter.

#8 Updated by Jan from Planio www.plan.io over 3 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

IMHO this can be closed since #17602 is now merged and implements this (as well as for enabled modules).

#9 Updated by Jan from Planio www.plan.io over 3 years ago

  • Duplicates Patch #17602: Include enabled modules in projects API added

#10 Updated by Etienne Massip over 3 years ago

  • Target version deleted (Candidate for next major release)

#11 Updated by Jean-Baptiste Barth over 3 years ago

Oh yes you're right Jan, it's now even on project#index ! As long as it's optionnal it seems OK to me, I updated the docs accordingly.

#12 Updated by Alex Last over 3 years ago

what is the minimum Redmine version that has this change?

#13 Updated by Jean-Baptiste Barth over 3 years ago

The field is already accessible for a specific project for a long time (GET /projects/:id) but in the projects list (GET /projects) it's only on the svn trunk for now. It will be included in Redmine 2.6.0 which isn't out yet.

Also available in: Atom PDF