Patch #17602

Include enabled modules in projects API

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

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

90%

Category:REST API
Target version:2.6.0

Description

For some API use cases, it will certainly be helpful to find out which modules are enabled in a project. It is at least for a new feature we're developing at Planio. But in general, every API client which uses - let's say the issues API - should be able to check beforehand, if the issue tracking module is active in a particular project or not.

This patch adds enabled_modules to the projects#show API. They will be shown only if the include=enabled_modules URL parameter is used. The behaviour is exactly the same as for issue categories and trackers.

And while we're at it, it also makes the include=... URL parameters (for issue categories, trackers and enabled modules) available in the projects#index API.

Tests are included, only needs merging :)

include_issue_categories_trackers_enabled_modules_in_projects_api.patch Magnifier (5.09 KB) Jan from Planio www.plan.io, 2014-08-03 18:26


Related issues

Duplicated by Redmine - Feature #8545: "get projects" REST API response should handle "include=t... Closed 2011-06-06

Associated revisions

Revision 13363
Added by Jean-Baptiste Barth about 4 years ago

Include enabled modules in projects API (#17602).

Contributed by Jan Schulz-Hofen <>

History

#1 Updated by Toshi MARUYAMA about 4 years ago

  • Target version changed from Candidate for next minor release to 2.6.0

#2 Updated by Jean-Baptiste Barth about 4 years ago

  • Status changed from Needs feedback to Closed
  • Assignee set to Jean-Baptiste Barth

Good addition and I don't think it needs much discussion.

So indeed, just needed merging ;) Thanks!

#3 Updated by Jan from Planio www.plan.io about 4 years ago

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

Also available in: Atom PDF