moltzaum opened a new issue #3304: Golang endpoints should accept "string 
integers"
URL: https://github.com/apache/trafficcontrol/issues/3304
 
 
   ```json
   {
           "name": "Manchester",
           "division": 1,
           "divisionName": "England"
   }
   ```
   
   The old perl API accepts both integers and strings since it is a dynamic 
language. In most go endpoints only an integer is accepted.
   
   For instance, the regions endpoint documentation says that the POST supports 
strings: https://traffic-control-cdn.readthedocs.io/en/latest/api/regions.html
   But actually POSTing an "integer string" yields an error message. 
   
   The go endpoints should be able to accept either integer or "string 
integers" to reduce the likelihood of breaking things that were once supported. 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to