Closed Ali-ModernBeauty closed 4 years ago
I think you are right, the main intention of the OData<Thing>Resource
is to map the specifications of the standard.
For other uses the client can be used directly
this.odata.get(this._userOdata).subscribe(body => { r.toEntities(body) });
Although for this the methods toEntity
, toEntities
and toValue
would have to be public.
On the other hand, similar to what happens with the functions, it is not bad that the responseTypes
are optional, what I do not know if it corresponds is to assume the value entity
by default.
I'm going to make some changes and take a closer look at the standard's specifications.
Thank you regards
I'll be more than happy to help any way I can.
Singlets work by default on a single entity
Hey! very minor issue. I hope I'm using the library correctly. It would be nice to have the
responseType
inoptions
parameter of get in ODataSingletonResource to default to 'entity'Here is some reference code: