> For the complete documentation index, see [llms.txt](https://alecmei-gubin.gitbook.io/citron-system/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alecmei-gubin.gitbook.io/citron-system/untitled/proekty/taski/doski.md).

# Доски

Подразумевается составляющие kanban доски

## index

<mark style="color:blue;">`GET`</mark> `https://api.url/api/project_task_stages`

{% tabs %}
{% tab title="200 " %}

```
{
    "data": [
        {
            "id": 1,
            "name": "В ожидании",
            "positon": 1,
            "project_id": 5
        }
    ]
}
```

{% endtab %}
{% endtabs %}

## store

<mark style="color:green;">`POST`</mark> `https://api.url/api/prject_task_stages`

#### Request Body

| Name        | Type    | Description            |
| ----------- | ------- | ---------------------- |
| project\_id | integer | id проекта             |
| position    | integer | Позиция по горизонтали |
| name        | string  | название доски         |

{% tabs %}
{% tab title="200 " %}

```
{
    "data": {
        "id": 2,
        "name": "В работе",
        "positon": "2",
        "project_id": "5"
    }
}
```

{% endtab %}
{% endtabs %}

## update

<mark style="color:orange;">`PUT`</mark> `https://api.url/api/project_task_stages/{task_stage_id}`

#### Path Parameters

| Name            | Type    | Description |
| --------------- | ------- | ----------- |
| task\_stage\_id | integer | id доски    |

#### Request Body

| Name        | Type    | Description                   |
| ----------- | ------- | ----------------------------- |
| project\_id | integer | id проекта                    |
| postion     | integer | позиция доски по  горизонтали |
| name        | string  | название доски                |

{% tabs %}
{% tab title="200 " %}

```
{
    "data": {
        "id": 1,
        "name": "asdas",
        "positon": 1,
        "project_id": 5
    }
}
```

{% endtab %}
{% endtabs %}

## delete

<mark style="color:red;">`DELETE`</mark> `https://api.url/api/project_task_stages/{task_stage_id}`

#### Path Parameters

| Name            | Type    | Description |
| --------------- | ------- | ----------- |
| task\_stage\_id | integer | id доски    |

{% tabs %}
{% tab title="200 " %}

```
[
    "success"
]
```

{% endtab %}
{% endtabs %}
