@furystack/rest-client-fetch

7.1.0 • Public • Published

rest-client-fetch

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',
  },
})

/@furystack/rest-client-fetch/

    Package Sidebar

    Install

    npm i @furystack/rest-client-fetch

    Weekly Downloads

    72

    Version

    7.1.0

    License

    GPL-2.0

    Unpacked Size

    54.4 kB

    Total Files

    24

    Last publish

    Collaborators

    • gallayl