Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@availity/api-axios
Advanced tools
A package wrapping @av/api-core with axios and native ES6 Promise.
npm install @availity/api-axios @availity/api-core @availity/localstorage-core --save
Polyfill Promise
if needed:
npm install es6-promise --save
import { userApi } from '@availity/api-axios'
function async getUser() {
const user = await userApi.me();
}
navigationApi
notificationApi
organizationsApi
permissionsApi
providersApi
regionsApi
pdfApi
spacesApi
userApi
userPermissionsApi
// complete example
import { navigationApi, notificationApi, organizationsApi, permissionsApi, providersApi, regionsApi, pdfApi, spacesApi, userApi, userPermissionsApi } from '@availity/api-axios'
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 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.
import { AvApiProxy } from '@availity/api-axios';
class AvExampleResource extends AvApiProxy {
constructor() {
super({
tenant: 'myhealthplan',
name: 'patients'
});
}
}
export default new AvExampleResource();
1.0.0-alpha.9 (2018-01-03)
<a name="1.0.0-alpha.8"></a>
FAQs
Wrappers for axios designed to work with the Availity portal
The npm package @availity/api-axios receives a total of 781 weekly downloads. As such, @availity/api-axios popularity was classified as not popular.
We found that @availity/api-axios demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 12 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.