@availity/api-angular
Wraps @availity/api-core with Angular $http
Last updated a year ago by availity-bot .
MIT · Original npm · Tarball · package.json
$ cnpm install @availity/api-angular 
SYNC missed versions from official npm registry.

api-angular

A package wrapping @av/api-core with Angular $http.

Version

Install

npm install @availity/api-angular @availity/api-core @availity/localstorage-core --save

Usage

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();
});

API Definitions

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
    }
);

Options

Configure the default options:

config(avApiOptionsProvider => {
    avApiOptionsProvider.setOptions({
        version: 'v2',
    });
});

Create API Definitions

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

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();
}

Current Tags

  • 4.4.6-alpha.0                                ...           canary (a year ago)
  • 4.4.5                                ...           latest (a year ago)

67 Versions

  • 4.4.6-alpha.0                                ...           a year ago
  • 4.4.5                                ...           a year ago
  • 4.4.4                                ...           a year ago
  • 4.4.3                                ...           a year ago
  • 4.4.3-alpha.7                                ...           a year ago
  • 4.4.2                                ...           a year ago
  • 4.4.1                                ...           a year ago
  • 4.4.0                                ...           a year ago
  • 4.3.0                                ...           a year ago
  • 4.2.1                                ...           a year ago
  • 4.2.0                                ...           a year ago
  • 4.1.6                                ...           a year ago
  • 4.1.5                                ...           2 years ago
  • 4.1.4                                ...           2 years ago
  • 4.1.3                                ...           2 years ago
  • 4.1.2                                ...           2 years ago
  • 4.1.1                                ...           2 years ago
  • 4.1.0                                ...           2 years ago
  • 4.0.1                                ...           2 years ago
  • 4.0.1-alpha.6                                ...           2 years ago
  • 4.0.1-alpha.4                                ...           2 years ago
  • 4.0.1-alpha.3                                ...           2 years ago
  • 4.0.0                                ...           2 years ago
  • 3.1.0                                ...           2 years ago
  • 3.0.3                                ...           2 years ago
  • 3.0.2-alpha.454                                ...           2 years ago
  • 3.0.1                                ...           2 years ago
  • 3.0.0                                ...           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.3.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
Downloads
Today 0
This Week 67
This Month 134
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |