Bug 39983

Summary: Return 405 (Method not allowed) when a route is called with the wrong method
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: REST APIAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: tadeusz, tomascohen
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Katrin Fischer 2025-05-23 14:34:17 UTC
We just did a bit of debugging and the problem turned out to be that the wrong method was used (GET vs. POST) and this resulted in a 404.

It might be a nice improvement if we returned 405 instead to give a better clue about the error.