vertical-knowledge / ripozo

A tool for quickly creating REST/HATEOAS/Hypermedia APIs in python
http://ripozo.readthedocs.org/
GNU General Public License v2.0
201 stars 22 forks source link

When returning a resource with no properties, use the 204 status code. #61

Closed jesselang closed 8 years ago

jesselang commented 8 years ago

Some managers (AlchemyManager for instance) return an empty dict on delete(). Along with #60, this change facilitates an empty response when deleting a resource.

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 9a84781f6a8bb2ec4ca25c02a02d94f373888e0c on jesselang:mixins-handle-delete-no-response into 4e5fdd956ef1878f74a8bc047abce963c52715e5 on vertical-knowledge:master.

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 76c5ac044ca24200dff04cdb0447711d33ad3643 on jesselang:mixins-handle-delete-no-response into 4e5fdd956ef1878f74a8bc047abce963c52715e5 on vertical-knowledge:master.

jesselang commented 8 years ago

I can see that this change may not be beneficial as a default behavior for a mixin.