src/rest-python/rest-python-config.ts
REST Python's location information.
Properties |
apiUrl |
apiUrl:
|
Type : string
|
Defined in src/rest-python/rest-python-config.ts:12
|
API URL if different from the default |
host |
host:
|
Type : string
|
Defined in src/rest-python/rest-python-config.ts:8
|
Host name or IP of the server hosting REST-Python |
port |
port:
|
Type : number
|
Defined in src/rest-python/rest-python-config.ts:10
|
Port number used by REST-Python |
import { InjectionToken } from '@angular/core';
/**
* REST Python's location information.
*/
export interface IRestPythonConfig {
/** Host name or IP of the server hosting REST-Python */
host?: string;
/** Port number used by REST-Python */
port?: number;
/** API URL if different from the default */
apiUrl?: string;
}
/**
* Pre-configure the REST-Python service by adding this to your application's
* providers
*/
export const REST_PYTHON_CONFIG = new InjectionToken<IRestPythonConfig>('REST_PYTHON_CONFIG');