Closed bjetal closed 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
ResourceGlobalConfig
asPromise
and asResourceResponse
returnAs
with enum type ResourceActionReturnType
; Default is ResourceActionReturnType.Observable
IResourceParams
and IResourceAction
asPromise
and asResourceResponse
returnAs
with enum type ResourceActionReturnType
; Default is ResourceActionReturnType.Observable
IResourceMethod
-> IResourceMethodPromise
IResourceMethodStrict
-> IResourceMethodPromiseStrict
IResourceMethodFull
-> IResourceMethodPromiseFull
IResourceMethodStrictFull
-> IResourceMethodPromiseStrictFull
ResourceCRUD
-> ResourceCRUDPromise
ResourceCRUDObservable
- same as ResourceCRUDPromise, but typed to ObservableI still have to update Docs and provide migration guide.
Thank you @all !!!
204 response results in empty object being returned
Most clients return null in this case. Possible fixes (in order of preference):