Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-25610

Publishing a role draft with REST should return HTTP 204

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 16.02
    • Fix Version/s: 1.3.0
    • Component/s: Platform > REST API v2
    • Labels:
      None

      Description

      When publishing a role draft with the REST API, no information about the role that got published is returned. We should return the location of the published role, like publishing content does.

      Role draft publishing currently returns HTTP 201 Created, this is wrong (should be used for newly created resources only). Content publishing returns only HTTP 204 No Content, we should do the same for roles.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bertrand.dunogier@ez.no Bertrand Dunogier
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 7 hours
                7h