Then the following is now possible, but only for adapter hooks that take a snapshot:
// app/adapters/post.js
urlTemplate: "/api/posts{/slug}", // This used to work before DS.Snapshot, now only id works
// app/adapters/comment.js
urlTemplate: "/api/posts/{postId}/comments{/id}", // either postId or post_id will work, automatically using the id from the associated post
This allows url templates to use attributes from the snapshot as well as relationship ids.
For example, assuming the following models:
Then the following is now possible, but only for adapter hooks that take a snapshot: