templates/interface/js/ngapimock.controller.js
function selectMock(mock, selection) {
            mockService.update({'identifier': mock.identifier, 'scenario': selection || 'passThrough'}, function () {
                vm.selections[mock.identifier] = selection;
            });
        }
function selectMock(mock, selection) {
            mockService.update({'identifier': mock.identifier, 'scenario': selection || 'passThrough'}, function () {
                vm.selections[mock.identifier] = selection;
            });
        }
function selectMock ( mock , selection ) { mockService . update ( { 'identifier' : mock . identifier , 'scenario' : selection || 'passThrough' } , function ( ) { vm . selections [ mock . identifier ] = selection ; } ) ; }
Select the given response.
@param mock The mock.
@param selection The selection.
Select the given response .