dangogh opened a new issue #2972: TO Go: api/1.4/servers/{:id}/deliveryservices
endpoint not allowing .json suffix
URL: https://github.com/apache/trafficcontrol/issues/2972
Many routes in `traffic_ops/traffic_ops_golang/routes.go` allow an optional
`.json` suffix; many do not.
`api/1.4/servers/{:id}/deliveryservices` endpoint is not defined to allow
the .json suffix. However, this endpoint as used in
`traffic_ops/client/deliveryservice_endpoints.go` is defined to use the suffix.
I don't know what other endpoints are affected by this. To test (using
the appropriate credentials):
```
curl $TO_URL/api/1.4/servers/{:id}/deliveryservices
```
```
curl $TO_URL/api/1.4/servers/{:id}/deliveryservices.json
```
You should see the list of assigned delivery services on the former and a
404 on the latter.
----------------------------------------------------------------
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