Defining an API endpoint on a model-by-model basis


#1

(Posting here since my stackoverflow question has not raised much interest)

I need to specify the API endpoints on a model by model basis. How can I do this? The closest I have come to this is the description of namespace, but this applies to the top-level URL.

My problem is that my API structure is not the one that emberjs expects. For example, I have these two objects, with completely different API endpoints:

phones -> /api/nodes/extensions/phones
nodes  -> /api/nodes

How can I configure the endpoints for each model?


#2

See http://stackoverflow.com/a/12765393/363073

Watch https://github.com/emberjs/data/pull/790


#3

I’d like to see this as an option also, because if you’re going to be building an Ember frontend on anything that looks like a SOA, then chances are you’re going to be composing models from various sources, not all of which will live under the same root path.


#4

Or even on a different domain, especially if you are dealing with mapping data like overlays and location data.


#5

I also would love this. I posted the same question a few days ago: