@diosmosis opened this Issue on October 2nd 2014 Member

API methods that return 'null' explicitly are rendered as {result: 'ok', message: 'success'} by API renderers, which I believe is incorrect.

@mattab commented on October 2nd 2014 Owner
  • When there is no return value we assume success response.
  • I think we cannot differentiate between return null; and when there is no returned value.
  • that's why return null; appears as success.

I would propose instead to modify the return null; and instead return false or some other meaningful return value?

@diosmosis commented on October 2nd 2014 Member

Returning array('value' => null) appears to work. Closing.

This Issue was closed on October 2nd 2014
Powered by GitHub Issue Mirror