Commit Graph
9 Commits
Author SHA1 Message Date
bad3940375 fix: API add and edit answer 400 when the save fails in 13 more controllers, as Users and Notifications do (#7384)
* fix: API add and edit answer 400 when the save fails in 13 more controllers, as Users and Notifications do refs #7383

* test: misc API controllers test gives its stub controller a response, as the controllers now set a status refs #7383

---------

Co-authored-by: Isaac Connor <isaac@zoneminder.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 08:16:35 -05:00
Isaac Connor ca3dc91104 Merge pull request #6919 from AJ0070/fix-api-edit-allow-method
fix: API edit for events, servers, storage and four others only saves for POST or PUT
2026-11-21 09:46:04 -05:00
Jash 8e7f937bf8 fix: API edit for events, servers, storage and four others only saves for POST or PUT refs #6918 2026-11-20 08:07:21 +05:30
Jash 3272620019 fix: API add for servers, storage, states, camera models, manufacturers and server stats answers JSON with the new id refs #6896 2026-11-19 22:28:44 +05:30
Jash dacc9725f5 fix: API roles save to the URL id and work without auth, index filters, in-use deletes, tags ambiguous column refs #6360 2026-11-16 12:35:16 +05:30
Jash 8924411e68 fix: answer API deletes with a JSON message and a 500 on failure instead of an empty 200 refs #5981 2026-11-15 13:22:49 +05:30
Jash dbc664a6f4 fix: pin the API manufacturer and model id on save, refuse duplicate names and answer a failed add with the validation errors refs #5918 2026-11-14 23:05:46 +05:30
stefan 1bd9def63e [API] Fix User variable from array to object
Fix $user variable from array to object to make API work again.
2023-04-23 22:07:24 +02:00
Isaac Connor c66489fb30 rough in api support for Models and Manufacturers 2021-09-25 20:49:30 -04:00