Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-7131

Create new WS api/components/show to show one component and its ancestors

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.4
    • Component/s: Web API
    • Labels:
      None

      Description

      The goal is to display a component details and its direct ancestors'

      • URL: api/components/show
      • Method: GET
      • Description: Display a component details and its direct ancestors
      • Permissions: Requires one of the following permissions:
        • 'Administer System' permission
        • 'Administer' rights on the specified project
        • 'Browse' and 'See Source Code' on the specified project
      • Errors:
        • 404 if the component is not found
      • Parameters:
        • componentId. The component id or the component key must be provided
        • componentKey
      • Response fields:
        • component:
          • id: uuid
          • key
          • projectId
          • name
          • description
          • qualifier
          • path
          • language
        • ancestors: list of components with the same fields, ordered from direct ancestors to farther ancestors. For example, if a file F1 is in the following path: D1/D2/D3/F1, the ancestors will be returned in the following order: [D3, D2, D1]

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                teryk.bellahsene Teryk Bellahsene (Inactive)
                Reporter:
                teryk.bellahsene Teryk Bellahsene (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: