hal-rest-client
hal-rest-client copied to clipboard
Typescript HAL Rest client
Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project.  #### Changes included in this PR - Changes to...
Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project.  #### Changes included in this PR - Changes to...
I was at the point were I was wondering why an embedded HAL resource isn't of the type that it was declared. I debugged and found that little bug. If...
right now HalRestClient has private properties. It cannot be easily extended
If i create multiple "sub-requests" out of the same main Request, those sub request seem to override each others properties. this.mainRequest = await getResponseFromEntryPoint('/') this.resource1 = await this.mainRequest.link('byKey').fetch({key: 'keyVal1'}) this.resource2...
After using `then` on the promise from a `fetch` with my model class, the returned object's attributes are undefined. The `props` attribute has all of the correct information, but it...
Hey, Getting to know the library and the docs, I think they could do with a bit of a refresh: - clearer heading structure - perhaps a new section on...
It seems that fetching collections of links could do with a bit of sugar. Right now, to collect a list of resources from an array of links we need something...
Lets say I have a model which has a field expected as link. Model: ``` export class Foo extends HalResource { @HalProperty('response.bar') bar: Bar; // it's link } ``` When...
There is this setup: ```typescript export class CustomerResource extends HalResource { @HalProperty() id: number @HalProperty() name: string // @HalProperty(StoreResource) // stores: Array } @Injectable() export class CustomerService { getCustomers(): Promise...