I've asked this question on stackoverflow, but i think this is a more appropriate place for it.
I'm creating an app for iOS, Android and the Web. I created a separate Restful Data Service that is meant to be consumed by all three environments, so I separated the Logic, and all of the apps can consume it at api.mysite.com.
Whats the best practice here? Is there one? Whats a good structure to follow?