ocket8888 commented on a change in pull request #4018: Add deliveryservice server capability docs URL: https://github.com/apache/trafficcontrol/pull/4018#discussion_r338208580
########## File path: docs/source/api/deliveryservice_server_capabilities.rst ########## @@ -0,0 +1,222 @@ +.. +.. +.. Licensed under the Apache License, Version 2.0 (the "License"); +.. you may not use this file except in compliance with the License. +.. You may obtain a copy of the License at +.. +.. http://www.apache.org/licenses/LICENSE-2.0 +.. +.. Unless required by applicable law or agreed to in writing, software +.. distributed under the License is distributed on an "AS IS" BASIS, +.. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +.. See the License for the specific language governing permissions and +.. limitations under the License. +.. + +.. _to-api-deliveryservice-server-capabilities: + +*************************************** +``deliveryservice_server_capabilities`` +*************************************** + +.. versionadded:: 1.4 + +``GET`` +======= +Gets all associations of Server Capabilities to Delivery Services + +:Auth. Required: Yes +:Roles Required: None +:Response Type: Array + +Request Structure +----------------- +.. table:: Request Query Parameters + + +-------------------+----------+---------------------------------------------------------------------------------------------------------------+ + | Name | Required | Description | + +===================+==========+===============================================================================================================+ + | deliveryServiceID | no | Filter associated Server Capabilities by Delivery Service ID | + +-------------------+----------+---------------------------------------------------------------------------------------------------------------+ + | xmlID | no | Filter associated Server Capabilities by Delivery Service xml ID | + +-------------------+----------+---------------------------------------------------------------------------------------------------------------+ + | serverCapability | no | Filter associated Server Capabilities by Server Capability | + +-------------------+----------+---------------------------------------------------------------------------------------------------------------+ + | orderby | no | Choose the ordering of the results - must be the name of one of the fields of the objects in the ``response`` | + | | | array | + +-------------------+----------+---------------------------------------------------------------------------------------------------------------+ + | sortOrder | no | Changes the order of sorting. Either ascending (default or "asc") or descending ("desc") | + +-------------------+----------+---------------------------------------------------------------------------------------------------------------+ + | limit | no | Choose the maximum number of results to return | + +-------------------+----------+---------------------------------------------------------------------------------------------------------------+ + | offset | no | The number of results to skip before beginning to return results. Must use in conjunction with limit. | + +-------------------+----------+---------------------------------------------------------------------------------------------------------------+ + | page | no | Return the n\ :sup:`th` page of results, where "n" is the value of this parameter, pages are ``limit`` long | + | | | and the first page is 1. If ``offset`` was defined, this query parameter has no effect. ``limit`` must be | + | | | defined to make use of ``page``. | + +-------------------+----------+---------------------------------------------------------------------------------------------------------------+ + +.. code-block:: http + :caption: Request Example + + GET /api/1.4/deliveryservice_server_capabilities HTTP/1.1 + Host: trafficops.infra.ciab.test + User-Agent: curl/7.47.0 + Accept: */* + Cookie: mojolicious=... + +Response Structure +------------------ +:deliveryServiceID: The Delivery Service's ID +:xmlID: The Delivery Service's text-based unique identifier Review comment: Please link to the relevant section of the Delivery Service overview (label is `ds-xmlid`) ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services