Uploaded image for project: 'Syncope'
  1. Syncope
  2. SYNCOPE-45

Make all delete operations consistent in the REST API

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0-incubating
    • Component/s: None
    • Labels:
      None

      Description


      There is a lack of consistency in how the REST controllers handle deletion. For example, RoleController.delete() does not return the deleted RoleTO object, unlike the corresponding method in UserController. It also uses the HTTP delete verb instead of get as per the UserController. I suggest there should be consistent behaviour for delete across the controllers, in other words all delete functionality should use HTTP GET and return the deleted object.

        Attachments

        1. syncope-45-console.patch
          13 kB
          Colm O hEigeartaigh
        2. syncope-45-core.patch
          34 kB
          Colm O hEigeartaigh

          Activity

            People

            • Assignee:
              coheigea Colm O hEigeartaigh
              Reporter:
              coheigea Colm O hEigeartaigh
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: