- Install
npm install --save radaller-core
- Import
import {HttpCli} from 'radaller-core';
- HttpCli
const client = HttpCli.getClient({
basePath: 'https://raw.githubusercontent.com/radaller/radaller-mock-data/master'
});
- Retrieve the data
client.resolve('path/to/resource')
.then(function(data) {
//do something with data
})