AuTA.js provides a friendly JavaScript interface for the AuTA API.
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.