hal-rest-client icon indicating copy to clipboard operation
hal-rest-client copied to clipboard

Typescript HAL Rest client

Results 10 hal-rest-client issues
Sort by recently updated
recently updated
newest added

Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project. ![merge advice](https://app.snyk.io/badges/merge-advice/?package_manager=npm&package_name=axios&from_version=0.18.1&to_version=0.21.3&pr_id=4404d751-0112-4eff-9d16-4d0e0ff3bab2&visibility=true&has_feature_flag=false) #### 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. ![merge advice](https://app.snyk.io/badges/merge-advice/?package_manager=npm&package_name=axios&from_version=0.18.1&to_version=0.21.1&pr_id=30947588-1f74-4add-84ba-1b0e0faefc56&visibility=true&has_feature_flag=false) #### 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...