https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30256

            Bug ID: 30256
           Summary: PUT /patrons/42 returns 201 instead of 200
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: REST API
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PUT
"""
If the target resource does not have a current representation and the PUT
request successfully creates one, then the origin server must inform the user
agent by sending a 201 (Created) response.

If the target resource does have a current representation and that
representation is successfully modified in accordance with the state of the
enclosed representation, then the origin server must send either a 200 (OK) or
a 204 (No Content) response to indicate successful completion of the request.
"""

We are returning 200, at least for /patrons

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to