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
- @apicase/services - powerful services to create smart and flexible API layer
- @apicase/spawner - painless control of your API requests flow