Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

LightApi

Gustavo Denis edited this page Oct 31, 2019 · 1 revision
Main > Using Liquid for building your application > Set up configuration per environment > LightApi

Configure each LightApi entry name to be called as the example bellow: ##On the back-end:

LightApi: {
        "ApiName1": {
            "Host": "http://localhost",
            "Port": "1071",
            "Telemetry": true
        },
        "ApiName2": {
            "Host": "http://localhost",
            "Port": "1072"
        }
    },

Where:

  • [ApiName]: is the name of API to be direct called in code (see calling APIs directly);
  • [ApiName].Host: IP number or DNS name of the remote server;
  • [ApiName].Port: the port number the remote server is listening;
  • [ApiName].Telemetry: indicates whether Liquid should or should not automatically gather telemetry from the calls to this API.

##On the front-end:

lightApi: {
        "apiName1": {
            "host": "http://localhost",
            "port": "1071",
            "telemetry": true,
            "stub": true 
        },
        "apiName2": {
            "host": "http://localhost",
            "port": "1072"
        }
    },

Where:

  • [ApiName]: is the name of API to be direct called in code (see calling APIs directly);
  • [ApiName].host: IP number or DNS name of the remote server;
  • [ApiName].port: the port number the remote server is listening;
  • [ApiName].telemetry: indicates whether Liquid should or should not automatically gather telemetry from the calls to this API.
  • [ApiName].stub: indicates whether Liquid should or should not create stub from the calls to this API.
Clone this wiki locally