•  
      request #27174 REST endpoint /tracker_fields/:id/files should return a 200 on success
    Infos
    #27174
    Thomas Gerbet (tgerbet)
    2022-06-27 11:43
    2022-06-14 10:56
    28608
    Details
    REST endpoint /tracker_fields/:id/files should return a 200 on success

    The endpoint currently returns a 201 on success, it should be a 200 as documented in the API Explorer. The 201 does not match the specification in the way it is currently used. https://httpwg.org/specs/rfc7231.html#status.201

    Reported by @gbonnefille https://chat.tuleap.org/channel/developers?msg=yRN4kW7FNBbJQiWMS

    Trackers
    Empty
    Empty
    • [ ] enhancement
    • [ ] internal improvement
    Empty
    Stage
    Thomas Gerbet (tgerbet)
    Closed
    2022-06-27
    Attachments
    Empty
    References

    Follow-ups

    User avatar

    I don't know if the code should be 200 or 201. Perhaps 201 is correct as there is effectively a resource created to serve as an endpoint to push data with TUS. My concern is mostly to document the same value as the one returned.