mattjackson220 commented on a change in pull request #4481: Rework 
to_extensions to servercheck/extensions & plugins in 2.x
URL: https://github.com/apache/trafficcontrol/pull/4481#discussion_r398175736
 
 

 ##########
 File path: traffic_control/clients/python/trafficops/tosession.py
 ##########
 @@ -1833,31 +1845,31 @@ def create_tenant(self, data=None):
        #
        # TO Extensions
        #
-       @api_request('get', 'to_extensions', ('2.0',))
-       def get_to_extensions(self):
+       @api_request('get', 'servercheck/extensions', ('2.0',))
+       def get_servercheck_extensions(self):
                """
                Retrieves the list of extensions.
-               :ref:`to-api-to_extensions`
+               :ref:`to-api-servercheck_extensions`
                :rtype: Tuple[Union[Dict[str, Any], List[Dict[str, Any]]], 
requests.Response]
                :raises: Union[LoginError, OperationError]
                """
 
-       @api_request('post', 'to_extensions', ('2.0',))
+       @api_request('post', 'servercheck/extensions', ('2.0',))
        def create_to_extension(self, data=None):
                """
                Creates a Traffic Ops extension.
-               :ref:`to-api-to_extensions`
+               :ref:`to-api-servercheck_extensions`
                :param data: The update action. QueueUpdateRequest() can be 
used for this argument also.
                :type data: Dict[str, Any]
                :rtype: Tuple[Union[Dict[str, Any], List[Dict[str, Any]]], 
requests.Response]
                :raises: Union[LoginError, OperationError]
                """
 
-       @api_request('delete', 'to_extensions/{extension_id:d}', ('2.0',))
+       @api_request('delete', 'servercheck/{extension_id:d}', ('2.0',))
 
 Review comment:
   should this be `servercheck/extensions/{extension_id:d}` ?

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to