Let's say I am writing a web app using CanJS that will sit on top of my fantasy baseball product and allow users to interact with the system (view players, teams, standings, scores, etc).
I will do this using the typical CanJS application structure (controllers, models, views, etc).
Now let's say I want to provide a JavaScript API for others to use to write their own apps that will sit on top of the fantasy baseball product. What is the best way to provide something like this?
I'm not going to give them the models my app is using cause that would require them to use CanJS. Not that that's a bad thing, but I just want to hand them the smallest amount of code that will allow them to retrieve and manipulate the data.
Do I need another layer on top of my models?
Thanks for the insight,
Mike