@availity/api-axios
Wraps @availity/api-core with Axios
Last updated 3 months ago by availity-bot-cicd .
MIT · Original npm · Tarball · package.json
$ cnpm install @availity/api-axios 
SYNC missed versions from official npm registry.

api-axios

A package wrapping @av/api-core with axios and native ES6 Promise.

Version

Install

NPM

$ npm install @availity/api-axios @availity/api-core

Yarn

$ yarn add @availity/api-axios @availity/api-core

Polyfill Promise if needed:

NPM

$ npm install es6-promise

Yarn

$ yarn add es6-promise

Usage

import { userApi } from '@availity/api-axios'

function async getUser() {
    const user = await userApi.me();
}

API Definitions

  • AvMicroserviceApi
  • AvProxyApi
  • avCodesApi
  • avDisclaimersApi
  • avFilesApi
  • avFilesDeliveryApi
  • avLogMessagesApi
  • avNavigationApi
  • avNotificationApi
  • avOrganizationsApi
  • avPdfApi
  • avPermissionsApi
  • avProvidersApi
  • avRegionsApi
  • avSettingsApi
  • avSlotMachineApi
  • avSpacesApi
  • avUserApi
  • avUserPermissionsApi
  • avWebQLApi

Details about each api can be found here

// complete example
import AvApi, {
    AvMicroserviceApi,
    AvProxyApi,
    avCodesApi,
    avDisclaimersApi
    avFilesApi,
    avFilesDeliveryApi,
    avLogMessagesApi,
    avNavigationApi,
    avNotificationApi,
    avOrganizationsApi,
    avPdfApi,
    avPermissionsApi,
    avProvidersApi,
    avRegionsApi,
    avSettingsApi,
    avSlotMachineApi,
    avSpacesApi,
    avUserApi,
    avUserPermissionsApi,
    avWebQLApi,
} from '@availity/api-axios';

Create API Definitions

Create new API definitions by extending AvApi. Extending AvApi provides services the behaviors described in @api-core/README#features

import AvApi from '@availity/api-axios';

class AvExampleResource extends AvApi {
    constructor() {
        super({
            name: 'exampleApi',
        });
    }
}

export default new AvExampleResource();

Create Proxy API Definitions

Create new API definitions by extending AvApiProxy. Extending AvApiProxy provides services the behaviors described in @api-core/README#features as well as building the url to match your tenant's proxy REST conventions.

import { AvApiProxy } from '@availity/api-axios';

class AvExampleResource extends AvApiProxy {
    constructor() {
        super({
            tenant: 'myhealthplan',
            name: 'patients',
        });
    }
}

export default new AvExampleResource();

Current Tags

  • 5.5.10-alpha.1                                ...           canary (2 months ago)
  • 5.5.9                                ...           latest (3 months ago)

108 Versions

  • 5.5.10-alpha.1                                ...           2 months ago
  • 5.5.10-alpha.0                                ...           2 months ago
  • 5.5.9                                ...           3 months ago
  • 5.5.9-alpha.2                                ...           4 months ago
  • 5.5.9-alpha.1                                ...           4 months ago
  • 5.5.8                                ...           5 months ago
  • 5.5.7                                ...           5 months ago
  • 5.5.6                                ...           6 months ago
  • 5.5.5                                ...           6 months ago
  • 5.5.4                                ...           6 months ago
  • 5.5.3                                ...           6 months ago
  • 5.5.2                                ...           6 months ago
  • 5.5.1                                ...           6 months ago
  • 5.6.0-alpha.9                                ...           6 months ago
  • 6.0.0-alpha.9                                ...           6 months ago
  • 5.5.0                                ...           7 months ago
  • 5.4.32                                ...           7 months ago
  • 5.4.31                                ...           7 months ago
  • 5.4.30                                ...           7 months ago
  • 5.4.29                                ...           8 months ago
  • 5.4.28                                ...           8 months ago
  • 5.4.27                                ...           8 months ago
  • 5.4.26                                ...           8 months ago
  • 5.4.25                                ...           9 months ago
  • 5.4.24                                ...           9 months ago
  • 5.4.23                                ...           9 months ago
  • 5.4.22                                ...           9 months ago
  • 5.4.21                                ...           10 months ago
  • 5.4.18                                ...           10 months ago
  • 5.4.16                                ...           10 months ago
  • 5.4.13                                ...           10 months ago
  • 5.4.12                                ...           10 months ago
  • 5.4.11                                ...           10 months ago
  • 5.4.10                                ...           a year ago
  • 5.4.9                                ...           a year ago
  • 5.4.8                                ...           a year ago
  • 5.4.7                                ...           a year ago
  • 6.0.0-alpha.10                                ...           a year ago
  • 6.0.0-alpha.2                                ...           a year ago
  • 5.4.7-alpha.0                                ...           a year ago
  • 5.4.6                                ...           a year ago
  • 5.4.5                                ...           a year ago
  • 5.4.4                                ...           a year ago
  • 5.4.4-alpha.7                                ...           a year ago
  • 5.4.3                                ...           a year ago
  • 5.4.2                                ...           a year ago
  • 5.4.1                                ...           a year ago
  • 5.4.0                                ...           a year ago
  • 5.3.0                                ...           a year ago
  • 5.2.1                                ...           a year ago
  • 5.2.0                                ...           a year ago
  • 5.1.6                                ...           2 years ago
  • 5.1.5                                ...           2 years ago
  • 5.1.4                                ...           2 years ago
  • 5.1.3                                ...           2 years ago
  • 5.1.2                                ...           2 years ago
  • 5.1.1                                ...           2 years ago
  • 5.1.0                                ...           2 years ago
  • 5.0.1                                ...           2 years ago
  • 5.0.1-alpha.4                                ...           2 years ago
  • 5.0.1-alpha.3                                ...           2 years ago
  • 5.0.0                                ...           2 years ago
  • 4.1.0                                ...           2 years ago
  • 4.0.0                                ...           2 years ago
  • 3.0.2-alpha.454                                ...           2 years ago
  • 3.0.1                                ...           2 years ago
  • 2.6.2                                ...           2 years ago
  • 2.6.1                                ...           2 years ago
  • 2.6.0                                ...           2 years ago
  • 2.5.0                                ...           2 years ago
  • 2.4.8                                ...           2 years ago
  • 2.4.7                                ...           2 years ago
  • 2.4.6                                ...           2 years ago
  • 2.4.0                                ...           2 years ago
  • 2.3.3                                ...           2 years ago
  • 2.3.2                                ...           2 years ago
  • 2.3.1                                ...           2 years ago
  • 2.2.0                                ...           2 years ago
  • 2.1.2                                ...           2 years ago
  • 2.1.1                                ...           3 years ago
  • 2.1.0                                ...           3 years ago
  • 2.0.3                                ...           3 years ago
  • 2.0.2                                ...           3 years ago
  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.4.0                                ...           3 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 1.0.0-alpha.17                                ...           3 years ago
  • 1.0.0-alpha.16                                ...           3 years ago
  • 1.0.0-alpha.15                                ...           3 years ago
  • 1.0.0-alpha.14                                ...           3 years ago
  • 1.0.0-alpha.13                                ...           3 years ago
  • 1.0.0-alpha.12                                ...           3 years ago
  • 1.0.0-alpha.11                                ...           3 years ago
  • 1.0.0-alpha.10                                ...           3 years ago
  • 1.0.0-alpha.9                                ...           3 years ago
  • 1.0.0-alpha.8                                ...           3 years ago
  • 1.0.0-alpha.7                                ...           3 years ago
  • 1.0.0-alpha.6                                ...           3 years ago
  • 1.0.0-alpha.5                                ...           3 years ago
  • 1.0.0-alpha.4                                ...           3 years ago
  • 1.0.0-alpha.3                                ...           3 years ago
  • 1.0.0-alpha.2                                ...           3 years ago
  • 1.0.0-alpha.1                                ...           3 years ago
  • 1.0.0-alpha.0                                ...           3 years ago

Copyright 2014 - 2016 © taobao.org |