auta
v2.0.0-R3
Published
Provides a simple JavaScript interface for the AuTA API
Readme
AuTA.js
AuTA.js provides a friendly JavaScript interface for the AuTA API.
Basic usage
A client can be instantiated using the AuTA client factory:
import AuTA from 'auta';
const client = AuTA.client({
...options
})Options is a dictionary of the following fields:
| Key | Type | Default | Description | |-----|------|---------|-------------| | baseUrl | string | the current host |the URL the AuTA core is running on | | authProvider | AuthProvider | an instance of AuthProvider | the authentication key provider to use when calling authenticated endpoints | | http | Http | an axios wrapper | the HTTP/REST backend |
Only the authProvider is required, unless only public endpoints are used.
See the JSDoc for information on how to use the AuTA client.
