RESTful-Drupal / restful

RESTful best practices for Drupal
https://drupal.org/project/restful
418 stars 173 forks source link

Fix curies for embedded resources in HAL. #344

Open e0ipso opened 9 years ago

e0ipso commented 9 years ago

The curies should contain the name of the public field.

Scenario

Imagine that a content type has 2 taxonomy term fields, and we are requesting an entity that has 2 terms on each field.

Current

The current result is that we have an array of 4 items in the '_embedded' in the HAL response.

Desired

The desired result is that we have 2 arrays of 2 items in the '_embedded' in the HAL response, and we can know which array corresponds to which field.

e0ipso commented 9 years ago

This is blocked until #319 is merged.

langillerr commented 9 years ago

319 is merged, any chance we can move forward with this? Right now I'm unable to use embedded resources since there is no way to correlate the embedded resources to a field properly.