Inconsistent meaning of flavor_ref in requests vs. responses
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Poppy |
Fix Released
|
Medium
|
Shaunak Kashyap |
Bug Description
In the "Create service" API (POST /services), the "flavor_ref" property is used to indicate a flavor ID (e.g. "asia"), not a flavor href (e.g. "http://
In the "Get service" API (GET /services/
This inconsistency will make things difficult for consumers of the API (such as SDKs and other client code) since such software often uses a common model for serializing request representations and deserializing response representations.
My suggestion would be:
* to use "flavor_id" (instead of "flavor_ref") to indicate flavor IDs in request and response representations of all resources that require/return flavors, and
* to add a new link with rel = "flavor" and href = "<flavor resource URL>" (e.g. "http://
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in poppy: | |
status: | New → Incomplete |
Changed in poppy: | |
status: | Fix Committed → Fix Released |
I would like to get the API-WG take on this item. Should flavors be referred to by their ID's, and contain a link in the links section to it. Or should it be referred to by flavor_ref which is always an href to follow.