Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 350541

Summary: Provide the project hierarchy as REST API
Product: z_Archived Reporter: Michael Ochmann <michael.ochmann>
Component: SkalliAssignee: Project Inbox <skalli.core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Michael Ochmann CLA 2011-06-28 05:55:00 EDT
Currently all REST clients must calculate the project hierarchy from the links provided by /api/projects on their own. It would be nice to have sosmething like https://projectportal.wdf.sap.corp/projects?view=hierarchy also in the REST API
Comment 1 Michael Ochmann CLA 2011-10-12 10:57:56 EDT
http://git.eclipse.org/c/skalli/org.eclipse.skalli.git/commit/?id=d3baaac782dc2d8437a9004d45dc8c1dbe48ca12

implements a REST call that is not exactly the same as the hierarchy view, but list all subprojects of a project down to a selectable depth.

Usage: 

/api/projects/{id}/subprojects?depth=<n>&extensions=<comma-separated-list-of-extension-names>

* depth can be provided as a request parameter (?depth=<n>) to
retrieve subprojects down to a certain depth (default is down to
arbitrary depth)

* extensions=<comma-separated-list-of-extension-names> request
parameter can be addded to the query to retrieve the REST
information for a given set of extensions (compare /api/projects)