Comment 8 for bug 1392573

Revision history for this message
Shaunak Kashyap (ycombinator-o) wrote :

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.