ketting icon indicating copy to clipboard operation
ketting copied to clipboard

The HATEOAS client for javascript

Results 30 ketting issues
Sort by recently updated
recently updated
newest added

From [OAS 3.1 spec](https://spec.openapis.org/oas/v3.1.0#patterned-fields) : > The path is appended (no relative URL resolution) to the expanded URL from the [Server Object](https://spec.openapis.org/oas/v3.1.0#serverObject)’s url field in order to construct the full...

Often, I need to use the following construct: ```typescript const username = ( await ( await this.ketting.follow('current-user') ).get() ).data.username; ``` I think it would be nice to have a shortcut...

Often, I am not sure a relation will be present or not when a server-side permission is involved. I'd like to avoid this kind of code: ```typescript if (userState.links.has('identity')) {...

Context : 1. We are using Ketting in a Next.js application. 2. We do some data fetching using in `getStaticProps`, where props needs to be serializable. HalState is not as...

Hi ! I have a middleware that changes the request URI to sort query params, it works fine. However, the caching middleware continues to use the premodified URI for caching....

I recently converted one of our web apps from Create React App to Vite. Now in the process of replacing some legacy code w/ ketting. Ketting worked fine in another...

bug

It is very convenient to type relations when we follow links.

Hi ! ### Context * Node v16.15.0 * NextJS v13.1.2 * Typescript v4.6.4 ### Problem Failed to provide global access to fetch in NextJS. Because `global.fetch` is already defined, and...

Currently it looks like `follow(rel, options)` only support templated URIs. It would be good to add a way to follow a link by `title`. Also, for HAL links, these are...