Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-8195

RESTv2 services should return HTTP 204 for DELETE

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 17.0.0
    • Fix Version/s: 18.0.1
    • Component/s: REST
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None

      Description

      For REST PUT and DELETE commands, if there is no response body it seems like it is better practice to return HTTP 204 No Content rather than an HTTP 200 OK. The PUT command inside org.opennms.web.rest.v2.AbstractDaoRestService already does this but the DELETE command should do this as well.

        Attachments

          Activity

            People

            Assignee:
            seth Seth Leger
            Reporter:
            seth Seth Leger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: