Installation

Install core package

npm install @apicase/core

Install adapters

All official adapters are named as @apicase/adapter-name

For example:

npm install @apicase/adapter-fetch

Usage

import { apicase } from '@apicase/core'
import fetch from '@apicase/adapter-fetch'

const doFetchRequest = apicase(fetch)

doFetchRequest({ url: '/posts' })

Additional packages

Official adapters