Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
@availity/api-angular
Advanced tools
A package wrapping @av/api-core with Angular
$http
.
npm install @availity/api-angular @availity/api-core @availity/localstorage-core --save
import availityApi from '@availity/api-angular';
angular.module('app', [availityApi]);
Inject one of the predefined API classes in a controller or service:
app.service('myCustomService', avUsersApi => {
return avUsersApi.me();
});
The services below can be injected into other services or controllers
avApiOptions
AvMicroserviceApi
avLogMessagesApi
AvProxyApi
avWebQLApi
avPdfApi
avNavigationApi
avNotificationApi
avOrganizationsApi
avPermissionsApi
avProvidersApi
avRegionsApi
avSpacesApi
avUsersApi
avUserPermissionsApi
avFilesApi
avFilesDeliverApi
avSettingsApi
avCodesApi
Details about each api can be found here
app.service(
'myCustomService',
(
avPdfApi,
avNavigationApi,
avNotificationApi,
avOrganizationsApi,
avPermissionsApi,
avProvidersApi,
AvProxyApi,
avRegionsApi,
avSpacesApi,
avUsersApi,
avUserPermissionsApi
) => {
// code
}
);
Configure the default options:
config(avApiOptionsProvider => {
avApiOptionsProvider.setOptions({
version: 'v2',
});
});
Create API definitions by extending AvApi
. Extending AvApi
provides services the behaviors described in @api-core/README#features
function factory(AvApi) {
class AvExampleResource extends AvApi {
constructor() {
super({
name: 'exampleApi',
});
}
}
return new AvExampleResource();
}
Create proxy 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.
function factory(AvApiProxy) {
class AvExampleResource extends AvApiProxy {
constructor() {
super({
tenant: 'myhealthplan',
name: 'patients',
});
}
}
return new AvExampleResource();
}
FAQs
Wraps @availity/api-core with Angular $http
We found that @availity/api-angular demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 13 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
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.