Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.