User tests: Successful: Unsuccessful:
Pull Request for Issue #46095 .
This PR fixes the DELETE endpoints to properly return HTTP 404 status code when attempting to delete non-existent resources, instead of returning 204 (No Content).
execute a DELETE for a non-existent resource es: /api/index.php/v1/contacts/99999
DELETE /api/v1/contacts/9999 returned 204 (No Content)
DELETE /api/v1/contacts/9999 returns 404 (Not Found) with error message
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | Libraries JavaScript Unit Tests |
| Labels |
Added:
Unit/System Tests
PR-6.0-dev
|
||
| Labels |
Added:
Webservices
|
||
| Title |
|
||||||
I have tested this item ✅ successfully on f9f4ac1
Before patch i got 204
Now a 404 as exspected
thanks @alikon
| Status | Pending | ⇒ | Ready to Commit |
RTC
I have tested this item ✅ successfully on f9f4ac1
Tested with JBT and test_46161.sh:
Thank you 👍
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46161.