Project

General

Profile

Actions

Feature #8545

closed

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

Added by Alex Last over 13 years ago. Updated about 10 years ago.

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

0%

Estimated time:
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..."


Files

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

Related issues

Is duplicate of Redmine - Patch #17602: Include enabled modules in projects APIClosedJean-Baptiste Barth

Actions
Actions #1

Updated by Etienne Massip over 13 years ago

  • Tracker changed from Defect to Feature

It's not handled.

Actions #2

Updated by Etienne Massip over 13 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
Actions #3

Updated by Alex Last almost 13 years ago

can we include this into Redmine 1.3.1?

Actions #4

Updated by Preethi Sriram almost 13 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.

Actions #5

Updated by Alex Last over 12 years ago

what/when is the "next major release"?

Actions #6

Updated by Alex Last about 10 years ago

let's merge this into "master"?

Actions #7

Updated by Jean-Baptiste Barth about 10 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.

Actions #8

Updated by Jan from Planio www.plan.io about 10 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).

Actions #9

Updated by Jan from Planio www.plan.io about 10 years ago

  • Is duplicate of Patch #17602: Include enabled modules in projects API added
Actions #10

Updated by Etienne Massip about 10 years ago

  • Target version deleted (Candidate for next major release)
Actions #11

Updated by Jean-Baptiste Barth about 10 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.

Actions #12

Updated by Alex Last about 10 years ago

what is the minimum Redmine version that has this change?

Actions #13

Updated by Jean-Baptiste Barth about 10 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.

Actions

Also available in: Atom PDF