To make things a bit more concrete, here's what I'm proposing for flavor references in other resources' representations:
When referencing a flavor in another resource's REQUEST representation:
{ "flavor_id": "asia", // ... other resource properties }
When referencing a flavor in another resource's RESPONSE representation:
{ "flavor_id": "asia", "links": [ { "rel": "flavor", "href": "{base_uri}/flavors/asia" } ], // ... other resource properties }
Please let me know if this is acceptable and I'll send in a patch with the necessary changes.
To make things a bit more concrete, here's what I'm proposing for flavor references in other resources' representations:
When referencing a flavor in another resource's REQUEST representation:
{
"flavor_id": "asia",
// ... other resource properties
}
When referencing a flavor in another resource's RESPONSE representation:
{ uri}/flavors/ asia"
"flavor_id": "asia",
"links": [
{
"rel": "flavor",
"href": "{base_
}
],
// ... other resource properties
}
Please let me know if this is acceptable and I'll send in a patch with the necessary changes.