I am implementing a project which uses backbone.js on the browser to communicate with my server. Is it possible to send the api key with the request without adding it in the model? and on response can I check for data that has nothing to do with the actual model, for example an access token?
Thank you.
This should get you started
Update
after some thinking it doesn’t make sense to send ‘munched’ model to the service hence the updated code will attach apikey with the request headers. Key to search for in request headers is api