GuidesAPI Reference
API Reference

importUrl(url, options, done)

Imports a mock from an external url

import Mimic from 'mimic';

function importCallback(status) {
 console.log(status.success, status.error)
}

mimic.importUrl('http://example.com/mock.json', { append: true }, importCallback)