0.0.2 • Published 6 years ago
loopback-connector-domo v0.0.2
loopback-connector-domo
This module is designed for basic CRUD with the Domo v1 endpoints
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development, testing, and deployment purposes.
Installing
npm i --save loopback-connector-domo
Adding REST connector to an API
- Add to
component-config
:"loopback-connector-domo": { "url": "https://domo.domo.com", "models": [ { "Domo": [ "databases"] } ] }
- Add
domo-api.json
to /common/models and add this modelL{ "name": "DomoAPI", "base": "Model", "idInjection": false, "options": { "validateUpsert": false }, "properties": {}, "validations": [], "relations": {}, "acls": [], "methods": {} }
- Add the model relation to transient datasource in
model-config.json
:"DomoAPI": { "dataSource": "transient", "public": true }
- Add the transient datasource to
datasource.json
:"transient": { "name": "transient", "connector": "transient" }
- Add a AUTH_TOKEN environment variable to use the remote methods
or use the user authentication (untested)
ex.
AUTH_TOKEN=generatedtoken
Available remote methods
- databases
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Sean Flores - Initial work - InternalAnalytics