Commits
William Welling authored c7321f9a22a
1 1 | import * as http from 'http'; |
2 2 | import * as https from 'https'; |
3 3 | |
4 4 | import { AppConfig } from '../src/config/app-config.interface'; |
5 5 | import { buildAppConfig } from '../src/config/config.server'; |
6 6 | |
7 7 | const appConfig: AppConfig = buildAppConfig(); |
8 8 | |
9 9 | /** |
10 - | * Script to test the connection with the configured REST API (in the 'rest' settings of your appConfig.*.json) |
10 + | * Script to test the connection with the configured REST API (in the 'rest' settings of your config.*.yaml) |
11 11 | * |
12 12 | * This script is useful to test for any Node.js connection issues with your REST API. |
13 13 | * |
14 14 | * Usage (see package.json): yarn test:rest |
15 15 | */ |
16 16 | |
17 17 | // Get root URL of configured REST API |
18 18 | const restUrl = appConfig.rest.baseUrl + '/api'; |
19 19 | console.log(`...Testing connection to REST API at ${restUrl}...\n`); |
20 20 | |