Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
1.8.0
-
None
Description
I created a handful of api endpoints in 1.8 with a flat response structure like:
{
"response": [
]
}
Although this is fine, it makes it more difficult to test when using structures derived from the database. This structure is more friendly.
{
"response": [
{
"asn": "23",
"cachegroup":
,
"id": "60",
"lastUpdated": "2016-10-13 12:31:43"
}
]
}
This nested structure needs to be applied to api endpoints related to asn, cachegroup, deliveryservice, phys_location, region, server and user.