Use ngRestEmulator with gulp-rest-emulator plugin.
bower install --save ng-rest-emulator
Add ngRestEmulator module: angular.module('App', ['ngRestEmulator']);
Add preset config:
angular.module('App')
.config(['$restEmulatorConfigProvider', function ($restEmulatorConfigProvider) {
$restEmulatorConfigProvider.set('/api/v1/users', 'blank');
$restEmulatorConfigProvider.set('/api/v1/cities', 'increase');
}]);
Available methods at dev console:
restEmulator.set(url, preset, [method]);
restEmulator.get(url, [method]);
restEmulator.clear(url, [method]);
restEmulator.list();