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 2021/03/08 22:54:10 UTC
[GitHub] [trafficcontrol] zrhoffman commented on a change in pull request #5611: servers/details endpoint
zrhoffman commented on a change in pull request #5611:
URL: https://github.com/apache/trafficcontrol/pull/5611#discussion_r589808981
##########
File path: traffic_control/clients/python/trafficops/tosession.py
##########
@@ -1645,6 +1645,16 @@ def get_server_delivery_services(self, server_id=None):
:raises: Union[LoginError, OperationError]
"""
+ @restapi.api_request('get', 'servers/details?hostName={name}', ('3.0','4.0',))
+ def get_server_details(self, name=None):
+ """
+ Retrieve server info in detail /api/4.0/servers/details?hostName=:name
+ :ref: `to-api-servers-details-hostName`
Review comment:
This should be a reStructuredText reference to a a label in the documentation somewhere.
Example:
https://github.com/apache/trafficcontrol/blob/038a439ebedd57ec6a4df1b2e65a390e04d6a00a/traffic_control/clients/python/trafficops/tosession.py#L270-L273
corresponds with
https://github.com/apache/trafficcontrol/blob/038a439ebedd57ec6a4df1b2e65a390e04d6a00a/docs/source/api/v4/asns.rst#L17-L21
----------------------------------------------------------------
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