Closed stefanpenner closed 9 years ago
old PR from @rjackson: https://github.com/rjackson/ember-data-nested-urls/blob/master/config/adapters/nested_url.es6.erb
@igort thoughts?
ping
@stefanpenner @wecc I assume work for this has been done in the official Ember Data adapter?
This can be closed as this is no longer in JSONAPI
@jonkoops closing. I think we'll deprecate the lib before this issue ever has a chance to be fixed.
@kurko Definitely, just making sure this isn't anything that should be implemented in the official.
url templating is only aware of the current model's ID, but to be compatible actually needs reference to the entire model.
This may need some ember-data level adjustments, but well worth it.
example:
the built url, incorrectly templates
{posts.comments}
with the primary models id.http://jsonapi.org/format/#document-url-template-shorthands elaborates other variations.
(cc @rjackson you mentioned similar ideas earlier today)