findOne

  • function
 

Simulate a findOne request on a fixture.

store.findOne(request, callback)

Parameters

  1. request {Object}

    Parameters for the request.

  2. callback {function()}

    A function to call with the retrieved item.

store.findOne(request, response(item)) simulates a request to get a single item from the server by id.

todosStore.findOne({
    url: "/todos/5"
}, function(todo){

});