https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38226 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |In Discussion --- Comment #10 from Jonathan Druart <jonathan.druart@gmail.com> --- (In reply to David Cook from comment #8)
(In reply to Jonathan Druart from comment #6)
curl -u koha:koha http://localhost:8081/rpc/biblios/1/items/1/populate_empty_callnumbers
It gets a 404, what am I missing?
Wouldn't you still need /api/v1/ in front of /rpc?
Yes, sorry, I guess I was trying stuffs, the main problem was the method, it's a POST. % curl -X POST -u koha:koha http://localhost:8081/api/v1/rpc/biblios/1/items/1/populate_empty_callnumber... This is working. However, this is wrong IMO: %curl -X POST -u koha:koha http://localhost:8081/api/v1/rpc/biblios/1/items/99/populate_empty_callnumbe... {"error":"Callnumber fields not found","error_code":"missing_configuration"} There is no item_id=99 for biblio_id=1. Shouldn't we return 404 instead? Adjusting the status regarding the last comments. -- You are receiving this mail because: You are watching all bug changes.