Project

General

Profile

Actions

Feature #8545

closed

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

Feature #8545: "get projects" REST API response should handle "include=trackers" parameter

Added by Alex Last over 15 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
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..."


Files

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

Related issues 1 (0 open — 1 closed)

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

Updated by Etienne Massip over 15 years ago Actions #1

  • Tracker changed from Defect to Feature

It's not handled.

Updated by Etienne Massip over 15 years ago Actions #2

  • 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

Updated by Alex Last almost 15 years ago Actions #3

can we include this into Redmine 1.3.1?

Updated by Preethi Sriram almost 15 years ago Actions #4

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.

Updated by Alex Last over 14 years ago Actions #5

what/when is the "next major release"?

Updated by Alex Last about 12 years ago Actions #6

let's merge this into "master"?

Updated by Jean-Baptiste Barth about 12 years ago Actions #7

  • 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.

Updated by Jan from Planio www.plan.io about 12 years ago Actions #8

  • 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).

Updated by Jan from Planio www.plan.io about 12 years ago Actions #9

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

Updated by Etienne Massip about 12 years ago Actions #10

  • Target version deleted (Candidate for next major release)

Updated by Jean-Baptiste Barth about 12 years ago Actions #11

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.

Updated by Alex Last about 12 years ago Actions #12

what is the minimum Redmine version that has this change?

Updated by Jean-Baptiste Barth about 12 years ago Actions #13

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: PDF Atom