Socket
Socket
Sign inDemoInstall

@availity/api-axios

Package Overview
Dependencies
Maintainers
7
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@availity/api-axios - npm Package Compare versions

Comparing version 2.6.2 to 3.0.1

CHANGELOG.md

4

package.json
{
"name": "@availity/api-axios",
"version": "2.6.2",
"version": "3.0.1",
"description": "Wraps @availity/api-core with Axios",

@@ -16,3 +16,3 @@ "main": "src/index.js",

"devDependencies": {
"@availity/api-core": "^2.6.0",
"@availity/api-core": "^3.0.0",
"axios": "^0.16.0 || ^0.17.0"

@@ -19,0 +19,0 @@ },

@@ -1,4 +0,4 @@

# api-axios
> A package wrapping [@av/api-core](../api-core/README.md) with axios and native ES6 Promise.
# api-axios
> A package wrapping [@av/api-core](../api-core/README.md) with axios and native ES6 Promise.

@@ -29,19 +29,45 @@ ## Install

- `navigationApi`
- `notificationApi`
- `organizationsApi`
- `permissionsApi`
- `providersApi`
- `regionsApi`
- `pdfApi`
- `spacesApi`
- `userApi`
- `userPermissionsApi`
- `AvMicroserviceApi`
- `AvProxyApi`
- `avLogMessagesApi`
- `avNavigationApi`
- `avNotificationApi`
- `avOrganizationsApi`
- `avPermissionsApi`
- `avProvidersApi`
- `avRegionsApi`
- `avPdfApi`
- `avSpacesApi`
- `avUserApi`
- `avUserPermissionsApi`
- `avFilesApi`
- `avFilesDeliveryApi`
- `avSettingsApi`
Details about each api can be found [here](../api-core/src/resources/README.md)
```js
// complete example
import { navigationApi, notificationApi, organizationsApi, permissionsApi, providersApi, regionsApi, pdfApi, spacesApi, userApi, userPermissionsApi } from '@availity/api-axios'
import AvApi, {
AvMicroserviceApi,
AvProxyApi,
avLogMessagesApi,
avNavigationApi,
avNotificationApi,
avOrganizationsApi,
avPermissionsApi,
avProvidersApi,
avRegionsApi,
avPdfApi,
avSpacesApi,
avUserApi,
avUserPermissionsApi,
avFilesApi,
avFilesDeliveryApi,
avSettingsApi,
} 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](../api-core/README.md#features)

@@ -54,3 +80,3 @@

super({
name: 'exampleApi'
name: 'exampleApi',
});

@@ -63,4 +89,5 @@ }

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

@@ -72,3 +99,3 @@ import { AvApiProxy } from '@availity/api-axios';

tenant: 'myhealthplan',
name: 'patients'
name: 'patients',
});

@@ -79,2 +106,1 @@ }

```

@@ -16,2 +16,3 @@ import AvApi from './api';

import avFilesApi from './files';
import avFilesDeliveryApi from './filesDelivery';
import avSettingsApi from './settings';

@@ -36,3 +37,4 @@

avFilesApi,
avFilesDeliveryApi,
avSettingsApi,
};

@@ -15,2 +15,3 @@ import Api, {

avFilesApi,
avFilesDeliveryApi,
avSettingsApi,

@@ -43,4 +44,5 @@ } from '../';

expect(avFilesApi).toBeDefined();
expect(avFilesDeliveryApi).toBeDefined();
expect(avSettingsApi).toBeDefined();
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc