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

RESTv2 services should return HTTP 204 for DELETE

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved (View Workflow)
    • Minor
    • Resolution: Fixed
    • 17.0.0
    • 18.0.1
    • REST
    • Security Level: Default (Default Security Scheme)
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: