It seems that you are talking about implementation details of how to store your data. Not sure that it somehow relative to API design and rest concepts.
ORM is just a way to get data from a relational DB, and it should not be the first decision point of api making.
For the first iteration, I'd suggest you to try designing api without thinking about any implementation. Visual diagrams with resources, and transitions are good start point, after that you can select a media format.
During design you can try to think how your clients would interact with api considering it to be a black box (from implementation stand point). I even suggest you to make some static mock files before you start coding the real impl.
After that you would have an understanding of what do you want and can start thinking how to imlement it.
--
You received this message because you are subscribed to the Google Groups "API Craft" group.
To unsubscribe from this group and stop receiving emails from it, send an email to api-craft+...@googlegroups.com.
Visit this group at http://groups.google.com/group/api-craft.
For more options, visit https://groups.google.com/d/optout.
--
--
--
You received this message because you are subscribed to a topic in the Google Groups "API Craft" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/api-craft/3ZjLmVnMUj0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to api-craft+...@googlegroups.com.
There's a ton of work that they need to do that doesn't get done because they're looking at every "select too from table where" query. There's no value there.
Fwiw, if I were going to do odata, I'd just use the auto wiring that m$ gives you for free and be done with it. OData is just SQL statements over http. From an API POV, it's about as primitive as you can get. You're basically saying "we have no idea what users really need, here's a connection string to the db so they can query it themselves".
There are times when this is all that's needed. Since your app is read only, this might be one of them " browse our catalog". Just like CRUD apps, odata has it's place and a value. So I've decided that ReST-ful has come to mean NOT ReST.
I don't find any of that technologically objectional as long as we understand what we are doing.
Projecting the data into another data that has a shape more conducive to odata queries seems like a win on several fronts. Don't infect the write application with the inevitable changes for the read API. Don't impact performance of the normal writes. Take away the arguments from the DBAs about letting odata do its thing directly against the db.
--
You received this message because you are subscribed to the Google Groups "API Craft" group.
To unsubscribe from this group and stop receiving emails from it, send an email to api-craft+...@googlegroups.com.
--