troyanskiy / ngx-resource-core

RESTful Core Library
40 stars 10 forks source link

Response with empty body returns empty object instead of null #41

Closed bjetal closed 5 years ago

bjetal commented 5 years ago

204 response results in empty object being returned

Most clients return null in this case. Possible fixes (in order of preference):

  1. Change this to return null be default.
  2. Add an option so it can return null.
  3. At least document this.
troyanskiy commented 5 years ago

Hello @all I did some refactoring and repository restructuring. From now on new repository is located here https://github.com/troyanskiy/ngx-resource Please create new issues in new repo. I will close all the issues in that repo.

Also I have released 7.0.0-beta.5 version with Observables support. Please test it and create new issues in new repo if you will find some bugs.

To update to new version run npm i --save @ngx-resource/core@beta @ngx-resource/handler-ngx-http@beta

Breaking changes:

ResourceGlobalConfig

IResourceParams and IResourceAction

Deprecation

New

I still have to update Docs and provide migration guide.

Thank you @all !!!