kiva / backbone.siren

Converts Siren JSON representations into Backbone Models
MIT License
14 stars 3 forks source link

BbSiren to detect if link is an entity #43

Open gxxcastillo opened 10 years ago

gxxcastillo commented 10 years ago

Would be great if BbSiren could detect if a link is an entity (perhaps if the link has the same basePath as the BbSiren instance?)

Use case:

myModel.link({rel: 'me'}).fetch().done(function (meModel) {
});
gxxcastillo commented 10 years ago

This is currently, mostly implemented by .request(). It just needs to be thought through a bit more...