REST Client package for @furystack/rest
with native Fetch implementation.
You can use this package to operate strongly typed REST APIs in the browser with native fetch
implementation.
import { MyApi } from 'my-common-package'
import { createClient } from '@furystack/rest-client-fetch'
export const callMyApi = createClient<MyApi>({
endpointUrl: 'http://my-service-endpoint',
requestInit: {
credentials: 'include',
},
})