Get /collection/id in backbone without loading the entire collection

backbone.js, collections, model

Solution

While we set

url:"api/user" 

for the collection, the equivalent for the model is

urlRoot:"api/user"

this will make backbone automatically append the /id when you fetch()

Problem

Is there a way to load a single entity of a Backbone collection (from the server)? ``` Backbone.Collection.extend({ url: '/rest/product' }); ``` The following code can load the entire collection with a `collection.fetch()` but how to load a single model? Backbone's documentation says clearly that `GET` can be done `/collection[/id]` but not how.

Original source