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

Create WS to search for groups by user

    XMLWordPrintable

    Details

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

      Description

      Create a Web Service that returns groups with a selected flag if the user is a member of the group.

      Parameters:

      • user - user login for which the service should list groups
      • selected [all|selected|deselected] - flag that shows what groups should be included in result set
      • query - string to search in group name
      • page - page numer
      • pageSize - number of results on a page

      The selected or query parameter is always provided, but never both.

      This WS should be paginated.

      Example:

      GET <some_method_url>?user=john&page=1&pageSize=100&selected=all
      {
        "more": false,
        "results": [
          {"name": "sonar-administrators", "selected": false},
          {"name": "sonar-users", "selected": true}
        ]
      }
      
      GET <some_method_url>?user=john&page=1&pageSize=100&selected=selected
      {
        "more": false,
        "results": [
          {"name": "sonar-users", "selected": true}
        ]
      }
      
      GET <some_method_url>?user=john&page=1&pageSize=100&selected=deselected
      {
        "more": false,
        "results": [
          {"name": "sonar-administrators", "selected": false}
        ]
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              julien.lancelot Julien Lancelot
              Reporter:
              julien.lancelot Julien Lancelot
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: