You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.
Would like to have content responses for a DELETE requests. Currently returns 204 (No Content) status code.
publicfunctiondelete($id) {
returntrue;
// Would like to return a response like below on success..// return array('status' => 'deleted', 'id' => $id);
}
The text was updated successfully, but these errors were encountered:
A successful response SHOULD be 200 (OK) if the response includes an entity describing the status, 202 (Accepted) if the action has not yet been enacted, or 204 (No Content) if the action has been enacted but the response does not include an entity.
So the developer should have the freedom of return an object.
Would like to have content responses for a DELETE requests. Currently returns 204 (No Content) status code.
The text was updated successfully, but these errors were encountered: