NodeJS + Circle CI
InsertionSort
fetch('https://sample-node-cicd.herokuapp.com/insertionSort', {
method: 'post',
body: JSON.stringify(body),
headers: { 'Content-Type': 'application/json' }
})
.then(res => res.json())
.then(ans => console.log(ans));
{ answer: [ -144, 56, 78, 1111 }
Binary Search
fetch('https://sample-node-cicd.herokuapp.com/binarySearch', {
method: 'post',
body: JSON.stringify(body),
headers: { 'Content-Type': 'application/json' }
})
.then(res => res.json())
.then(ans => console.log(ans));
{
status: 'found';
}