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

Create new WS /api/components/search to be able to search any project or view

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2
    • Component/s: Web API
    • Labels:
      None

      Description

      The WS is currently limited to projects in a view or a sub-view.
      Make it possible to search projects and views by a given query and a qualifier.

      • rename api/components/search to api/components/search_view_components
      • create new WS api/components/search

      GET api/components/search

      Input

      • p=1
      • ps=100
      • qualifier=TRK,VW (let's limit to these options for now)
      • q=sonar

      Output

      {
        "paging": {...},
        "components": [
          {
            "id": "0bd7b1e7-91d6-439e-a607-4a3a9aad3c6a",
            "key": "net.java.openjdk:jdk7",
            "name": "JDK 7",
            "qualifier": "TRK",
          }
        ]
      }
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: