ocket8888 commented on a change in pull request #4444: Document undocumented Traffic Ops routes URL: https://github.com/apache/trafficcontrol/pull/4444#discussion_r384059521
########## File path: docs/source/api/v2/deliveryservice_requests.rst ########## @@ -0,0 +1,767 @@ +.. +.. +.. 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-requests: + +**************************** +``deliveryservice_requests`` +**************************** + +``GET`` +======= +Retrieves :ref:`ds_requests`. + +:Auth. Required: Yes +:Roles Required: "read-only" +:Response Type: Array + +Request Structure +----------------- +.. table:: Request Query Parameters + + +-----------+----------+------------------------------------------------------------------------------------------+ + | Name | Required | Description | + +===========+==========+==========================================================================================+ + | assignee | no | Filter for :ref:`ds_requests` that are assigned to the user | + | | | identified by this username. | + +-----------+----------+------------------------------------------------------------------------------------------+ + | assigneeId| no | Filter for :ref:`ds_requests` that are assigned to the user | + | | | identified by this integral, unique identifier | + +-----------+----------+------------------------------------------------------------------------------------------+ + | author | no | Filter for :ref:`ds_requests` submitted by the user | + | | | identified by this username | + +-----------+----------+------------------------------------------------------------------------------------------+ + | authorId | no | Filter for :ref:`ds_requests` submitted by the user | + | | | identified by this integral, unique identifier | + +-----------+----------+------------------------------------------------------------------------------------------+ + | changeType| no | Filter for :ref:`ds_requests` of the change type specified. | + | | | Can be ``create``, ``update``, or ``delete``. | + +-----------+----------+------------------------------------------------------------------------------------------+ + | id | no | Filter for the :ref:`Delivery Service Request <ds_requests>` identified by this | + | | | integral, unique identifier. | + +-----------+----------+------------------------------------------------------------------------------------------+ + | status | no | Filter for :ref:`ds_requests` whose status is the status | + | | | specified. The status can be ``draft``, ``submitted``, ``pending``, ``rejected``, or | + | | | ``complete``. | + +-----------+----------+------------------------------------------------------------------------------------------+ + | xmlId | no | Filter for :ref:`ds_requests` that have the given | + | | | :ref:`ds-xmlid`. | + +-----------+----------+------------------------------------------------------------------------------------------+ + +.. code-block:: http + :caption: Request Example + + GET /api/2.0/deliveryservice_requests?status=draft HTTP/1.1 + User-Agent: python-requests/2.22.0 + Accept-Encoding: gzip, deflate + Accept: */* + Connection: keep-alive + Cookie: mojolicious=... + +Response Structure +------------------ +:author: The author of the Delivery Service Request +:authorId: The integral, unique identifier assigned to the author +:changeType: The change type of the :term:`DSR <Delivery Service Request>`. It can be ``create``, ``update``, or ``delete``.... +:createdAt: The date and time at which the :term:`DSR <Delivery Service Request>` was created, in ISO format. +:deliveryService: The delivery service that the :term:`DSR <Delivery Service Request>` is requesting to update. Review comment: sub-property definitions? ---------------------------------------------------------------- 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
