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 2019/04/26 19:28:04 UTC

[GitHub] [trafficcontrol] moltzaum opened a new issue #3531: TO: Type validation for steering targets

moltzaum opened a new issue #3531: TO: Type validation for steering targets
URL: https://github.com/apache/trafficcontrol/issues/3531
 
 
   POST /api/1.1/steering/:id/targets
   ```
   {
       "targetId": 8,
       "typeId", 7,
       "value": 100
   }
   ```
   
   This endpoint doesn't perform validation on the type id. The only valid types are `STEERING_ORDER`, `STEERING_WEIGHT`, `STEERING_GEO_ORDER`, and `STEERING_GEO_WEIGHT`.
   
   I came across this while reading the [documentation](https://traffic-control-cdn.readthedocs.io/en/latest/api/steering_id_targets.html), where the `HTTP` type is used.
   
   The description for 'value' in the documentation shouldn't correspond just to the weight, but to any of the types that are posted.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services