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

New /api/projects/bulk_delete WS

    XMLWordPrintable

    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 current /api/projects/destroy WS should be replaced by a new WS because:

      • it accepts only one parameter (id) that matches either a key or a (DB) ID, which we don't want any longer in web services
      • the name is not consistent with other WS (destroy instead of delete)
      • it does not allow to pass several project UUID
      • it does not allow to pass a list of project keys or UUID to be able to mass delete projects

      So we should develop a new /api/projects/bulk_delete WS that should accept 2 exclusive parameters:

      • keys: a list of project keys
      • ids: a list of project uuids

      If request is successful, return a HTTP code 204, otherwise return a standard error.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              teryk.bellahsene Teryk Bellahsene
              Reporter:
              fabemn OLD - Fabrice Bellingard
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: