Skip to content

Commit

Permalink
Maintenance: Improve code blocks for ticket links
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGeneration committed Nov 3, 2021
1 parent f1175b4 commit 2a8b8f6
Showing 1 changed file with 24 additions and 16 deletions.
40 changes: 24 additions & 16 deletions api/ticket/links.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,22 @@ Available endpoints:
Get
===

Request::
``GET``-Request sent: ``/api/v1/links``

GET /api/v1/links

with following parameters:
.. code-block:: json
:force:
{
"link_object": "Ticket",
"link_object_value": "147469"
}
Response::
Response:

.. code-block:: json
:force:
Status: 200 Ok
# HTTP-Code 200 Ok
{
"links": [
Expand Down Expand Up @@ -406,11 +408,10 @@ Add

Required permission: ``ticket.agent`` **or** ``admin``

Request::

POST /api/v1/links/add
``POST``-Request sent: ``/api/v1/links/add``

with following parameters:
.. code-block:: json
:force:
{
"link_type": "normal",
Expand All @@ -420,9 +421,12 @@ Request::
"link_object_source_number": "34147471"
}
Response::
Response:

Status: 201 Created
.. code-block:: json
:force:
# HTTP-Code 201 Created
{
"id": 5,
Expand All @@ -440,9 +444,10 @@ Delete

Required permission: ``ticket.agent`` **or** ``admin``

Request::
``DELETE``-Request sent: ``/api/v1/links/remove``

DELETE /api/v1/links/remove
.. code-block:: json
:force:
{
"link_type": "normal",
Expand All @@ -452,8 +457,11 @@ Request::
"link_object_target_value": 147469
}
Response::
Response:

.. code-block:: json
:force:
Status: 201 Created
# HTTP-Code 201 Created
{ }

0 comments on commit 2a8b8f6

Please sign in to comment.