restangular icon indicating copy to clipboard operation
restangular copied to clipboard

getList() does not accept empty answer anymore

Open RBLU opened this issue 12 years ago • 1 comments

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

RBLU avatar Feb 04 '14 09:02 RBLU

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...

RBLU avatar Feb 04 '14 09:02 RBLU