/servers/{{ID}}/deliveryservices returns incorrect response for the requested API version #5894
Labels
regression bug
a bug in existing functionality introduced by a new version
Traffic Ops
related to Traffic Ops
I'm submitting a ...
Traffic Control components affected ...
Current behavior:
Making a request to
/servers/{{ID}}/deliveryservices
will return a different structure from a request made to/deliveryservices
for the same API version. As these are not the same endpoint, there's technically no reason they need to return the same structural representation for the same Delivery Service at the same API version, but because released API versions were retroactively changed to return extra fields, this is a regression bug. In fixing it, I suggest we define the response structure to be isomorphic to/deliveryservices
.The various API versions requested for
/servers/{{ID}}/deliveryservices
compared to the API version of/deliveryservices
that would yield the same structure as/servers/{{ID}}/deliveryservices
are given below:/servers/{{ID}}/deliveryservices
version/deliveryservices
versionExpected behavior:
The structure of a response from
/servers/{{ID}}/deliveryservices
should be the same as that of a response from/deliveryservices
for the same API version. In other words, instead of the behavior described by the above table, what I'd expect to see is something more like:/servers/{{ID}}/deliveryservices
version/deliveryservices
versionMinimal reproduction of the problem with instructions:
Make requests to
/servers/{{ID}}/deliveryservices
, note the presence or absence of fields introduced or removed in various API versions of/deliveryservices
and their presence or absence from/servers/{{ID}}/deliveryservices
.The text was updated successfully, but these errors were encountered: