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
delete() and deleteList() method in Resource objects needs accept data from request body, since in such scenario, user need to give comments on why this action happens and provides other related information.
I think it's better to return 202 Accepted as response for DELETE method, better than 204 no content.
Agreed with (1); I'll work on that for either 1.0.3 or 1.1.0.
As for (2), 202 indicates the request has been accepted, but not processed. In the majority of cases, this is likely entirely incorrect, and 204 is the more accurate case (as there is no content returned, as the resource no longer exists to be represented).
Originally posted by @snowwolf007cn at zfcampus/zf-apigility#49
The text was updated successfully, but these errors were encountered: