[dev.icinga.com #11396] inconsistent API /v1/objects/* response for PUT requests #4038
This issue has been migrated from Redmine: https://dev.icinga.com/issues/11396
Created by danvaida on 2016-03-16 12:39:04 +00:00
While calling the API for 3 operations, I am expecting something different. For example:
It'd be nice to get a 503 maybe (like in the case of other requests for already existing objects).
Also, I can't really tell if the object was indeed updated or not as it's always the same response:
2016-05-09 13:08:35 +00:00 by mfriedrich 8a65c4a
2016-05-10 11:43:36 +00:00 by mfriedrich 1c6f09f
2016-05-12 09:08:21 +00:00 by mfriedrich 83985f9
2016-05-12 09:09:49 +00:00 by mfriedrich 06f97c8
Updated by mfriedrich on 2016-03-18 10:07:03 +00:00
Updated by mfriedrich on 2016-05-09 13:04:54 +00:00
The PUT error should return a JSON error instead of throwing an exception. In terms of detecting whether an object was modified or not - that is currently not possible at this stage and not planned to add that.
I'm therefore fixing the PUT error message as missing part to resolve the ticket.