0.0.2 • Published 6 years ago

loopback-connector-domo v0.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

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

  1. Add to component-config:
    "loopback-connector-domo": {
      "url": "https://domo.domo.com",
      "models": [
        {
          "Domo": [ "databases"]
        }
      ]
    }
  2. 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": {}
    }
  3. Add the model relation to transient datasource in model-config.json:
    "DomoAPI": {
      "dataSource": "transient",
      "public": true
    }
  4. Add the transient datasource to datasource.json:
    "transient": {
      "name": "transient",
      "connector": "transient"
    }
  5. 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