You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2022/06/15 16:51:13 UTC

[GitHub] [trafficcontrol] ocket8888 opened a new issue, #6904: POST and PUT responses from /deliveryservices and /deliveryservices/{{ID}} are arrays

ocket8888 opened a new issue, #6904:
URL: https://github.com/apache/trafficcontrol/issues/6904

   ## This Improvement request (usability, performance, tech debt, etc.) affects these Traffic Control components:
   - Traffic Ops
   
   ## Current behavior:
   The response type of requests to create and update Delivery Services is an array of one Delivery Service. I'm not sure if this was always the case.
   
   ## New behavior:
   Per the API guidelines:
   
   > When an object is created, the response body MUST contain a representation of the newly created object.
   
   and
   
   > When an object is replaced, the response body MUST contain a representation of the object after replacement.
   
   since the object created or updated is not an array but actually the single element of what is currently an array, the response should not be an array but simply the single object.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [trafficcontrol] ocket8888 commented on issue #6904: POST and PUT responses from /deliveryservices and /deliveryservices/{{ID}} are arrays

Posted by GitBox <gi...@apache.org>.
ocket8888 commented on issue #6904:
URL: https://github.com/apache/trafficcontrol/issues/6904#issuecomment-1156709588

   Note that this is a breaking API change; cannot be done in APIv3 (or probably v4 which is set to be released any day now).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org