Please "move" the access_url property from links to domains
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Poppy |
Triaged
|
Wishlist
|
Mohan Madhavan |
Bug Description
Currently, when a service with multiple domains is retrieved using the GET /services/
{
"services": [
{
"name": "mywebsite.com",
"id": "9fb249d5-
{
},
{
}
],
{
}
],
{
}
],
{
}
],
{
},
{
},
{
},
{
}
]
}
],
"links": [
{
"href": "https:/
"rel": "next"
}
]
}
As expected there are two "access_url" links, corresponding to the two domains for this service. However, it is not easy to programmatically determine the 1-1 corresponding between a domain and its access_url without resorting to string/regex matching between domains and access_url hrefs.
To alleviate this issue, please consider moving the access_urls out of "links" and into each domain object inside the "domains" array. Also, as the values of these "access_url" hrefs are not actually URLs - they are domain names -, please consider naming the new property inside each domain object appropriately, like "access_domain" or similar.
In order to preserve backwards compatibility, you might need to just copy these values from the "links" array instead of moving them.
Changed in poppy: | |
milestone: | none → kilo-3 |
importance: | Undecided → Medium |
Changed in poppy: | |
milestone: | kilo-3 → liberty-1 |
Changed in poppy: | |
milestone: | liberty-1 → none |
Changed in poppy: | |
status: | New → Triaged |
importance: | Medium → Wishlist |
Changed in poppy: | |
assignee: | nobody → Mohan Madhavan (mohan-madhavan) |