Files
sample-node-api/scripts/testNodeAPI.js
Nakul Manchanda 03c59dea24 separate route for cli
Signed-off-by: Nakul Manchanda <nakul.manchanda@ibm.com>
2019-04-14 23:25:54 -05:00

4 lines
203 B
JavaScript

const fetch = require('node-fetch');
fetch('https://mymainframe.ibm.com:18000/accounts', { method: 'GET' })
.then(res => res.json()) // expecting a json response
.then(json => console.log(json));