I am building an API that will connect to multiple databases. I am using Emberjs on the front end and the default rest adapter seems to prefer shallow routes. Say, I have the following routes
At this point, my routes are already 2 levels deep. Any further nesting makes it hard to deal with
In the above URL, I'd like to be able to eliminate the 'databases/1/' portion which will make the rest of the resources easy to access within one or two levels but I am not sure how to pass in the information about the database. I thought about using query parameters but that seems like bad design
Any feedback would be appreciated.