restangular
restangular copied to clipboard
getList() does not accept empty answer anymore
Since this commit https://github.com/mgonto/restangular/commit/3c0879d22c924d40fe7f887478844aeacaf06c85 line 999 getList() does not accept empty answers anymore.
Our backend answers with a 204 status code and an empty body on GET calls if there are no objects to be sent. Is this not supported anymore maybe because it might not be standard REST? or is it just a bug
Well, reading this: http://stackoverflow.com/questions/13366730/proper-rest-response-for-empty-table I agree that a response with code 200 and empty array is the preferred way, but maybe restangular should also support a 204 because not everybody can just change their backend...