View Issue Details

IDProjectCategoryView StatusLast Update
0023131mantisbtapi restpublic2017-09-03 18:41
Reporterrichardmoss Assigned Tovboctor  
Status closedResolutionfixed 
Product Version2.5.1 
Target Version2.6.0Fixed in Version2.6.0 
Summary0023131: /api/rest/projects doesn't return child projects

My MantisBT instance has 10 top level projects, 9 of which are public. The 10th is private and has 4 child projects, also private.

If I call /api/rest/projects using an token belonging to a viewer user, the first 9 projects are returned as expected.

If I call the same API using a token belong to an administrator user, 10 projects are returned - but not the 4 child projects, either as part of the main list or as children of the 10th project. Toggling the status of the projects to make them public rather than private has no effect.

TagsNo tags attached.


Related Changesets

MantisBT: master 10ff2817

2017-07-23 15:11:05


Details Diff
Support sub-projects in REST API get all projects

- GET /api/rest/projects should return sub-projects.
- Projects should include “subProjects” element that lists sub-projects.
- Project info returned for sub-project reflects inherited information like categories and versions.

Fixes 0023131
Affected Issues
mod - api/rest/restcore/projects_rest.php Diff File