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

New web service to search for resources by name

    XMLWordPrintable

    Details

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

      Description

      The new URL /api/resources/search allows to search for resources by name.

      Example : get projects and sub-projects with name containing "com"

      curl -v 'http://localhost:9000/api/resources/search?s=com&q=TRK,BRC'
      
      {
        "total":1,
        "page":1,
        "page_size":10,
        "data":[
          {"id":93,"nm":"Commons Chain","q":"TRK"},
          {"id":212,"nm":"Apache Comparator","q":"TRK"}
        ]}}
      

      Optional parameters are :

      • p : 1-based page index (default is 1)
      • ps : page size (default is 10)
      • q : list of qualifiers to filter on
      • qp : filter on the qualifiers on which the property is defined, for example qp=supportsGlobalDashboards

        Attachments

          Activity

            People

            Assignee:
            simon.brandhof Simon Brandhof (Inactive)
            Reporter:
            simon.brandhof Simon Brandhof (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: