{
    "openapi": "3.0.0",
    "info": {
        "title": "Toirjon Elektron tizimi - API",
        "description": "based on L5 Swagger OpenApi",
        "contact": {
            "email": "parmonov98@yandex.ru"
        },
        "license": {
            "name": "MIT"
        },
        "version": "1.0.0"
    },
    "servers": [
        {
            "url": "api"
        }
    ],
    "paths": {
        "/auth/register": {
            "post": {
                "tags": [
                    "1. Auth vs Register user"
                ],
                "operationId": "ed42f392010c301892e640067141676e",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "email": {
                                        "type": "string"
                                    },
                                    "password": {
                                        "type": "string"
                                    },
                                    "password_confirmation": {
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                }
            }
        },
        "/auth/login": {
            "post": {
                "tags": [
                    "1. Auth vs Register user"
                ],
                "operationId": "8cb7742ae98d0990acb2907c4e00bf24",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "email": {
                                        "type": "string"
                                    },
                                    "password": {
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful logged"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                }
            }
        },
        "/auth/user": {
            "get": {
                "tags": [
                    "1. Auth vs Register user"
                ],
                "operationId": "f866991773f8ab6b0d32a06e27dba3af",
                "responses": {
                    "200": {
                        "description": "Successful retrieved"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/auth/user/roles": {
            "get": {
                "tags": [
                    "1. Auth vs Register user"
                ],
                "operationId": "2ad28487c59ee225cc92dc29d99771e0",
                "responses": {
                    "200": {
                        "description": "Successful retrieved"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/auth/profile": {
            "patch": {
                "tags": [
                    "1. Auth vs Register user"
                ],
                "summary": "Update a profile",
                "operationId": "1d47269fc5b3650dd09cb217e04050e9",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "email": {
                                        "type": "string"
                                    },
                                    "password": {
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/auth/refresh": {
            "get": {
                "tags": [
                    "1. Auth vs Register user"
                ],
                "operationId": "c8e8f0adcbc6cd891c3971bbe46d160c",
                "responses": {
                    "200": {
                        "description": "Successful refreshed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/auth/logout": {
            "delete": {
                "tags": [
                    "1. Auth vs Register user"
                ],
                "operationId": "085014c580531cf4f0a1c53b7c3faa65",
                "responses": {
                    "200": {
                        "description": "Successful logged out"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/clients/": {
            "get": {
                "tags": [
                    "4. Clients - Klientlar"
                ],
                "summary": "Get list of clients",
                "operationId": "a83dc35f845f155be2dd0289493a9cad",
                "parameters": [
                    {
                        "name": "from_date",
                        "in": "query",
                        "description": "from_date for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-25"
                        }
                    },
                    {
                        "name": "to_date",
                        "in": "query",
                        "description": "to_date for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-27"
                        }
                    },
                    {
                        "name": "is_all",
                        "in": "query",
                        "description": "to all Clients only id and name ",
                        "required": false,
                        "schema": {
                            "type": "boolean",
                            "example": "true"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful retrieved"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "4. Clients - Klientlar"
                ],
                "summary": "Create new client",
                "operationId": "b1a96a48af9837673fb205bf6711d2e0",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "contractor": {
                                        "type": "string"
                                    },
                                    "inn": {
                                        "type": "string"
                                    },
                                    "phone": {
                                        "type": "string"
                                    },
                                    "balance": {
                                        "type": "integer"
                                    },
                                    "type": {
                                        "description": "yuridik | jismoniy",
                                        "type": "string"
                                    },
                                    "bank_account": {
                                        "type": "integer"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/clients/{id}": {
            "get": {
                "tags": [
                    "4. Clients - Klientlar"
                ],
                "summary": "Get client data",
                "operationId": "2965e9737f628d15ea88209095622c24",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "4. Clients - Klientlar"
                ],
                "summary": "Delete client data",
                "operationId": "20de5e8bdef993807384fd7040f9ae92",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "patch": {
                "tags": [
                    "4. Clients - Klientlar"
                ],
                "summary": "update a client",
                "operationId": "807c9a40eebca1e6838352a8578676f4",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "contractor": {
                                        "type": "string"
                                    },
                                    "inn": {
                                        "type": "string"
                                    },
                                    "phone": {
                                        "type": "string"
                                    },
                                    "balance": {
                                        "type": "integer"
                                    },
                                    "type": {
                                        "description": "yuridik | jismoniy",
                                        "type": "string"
                                    },
                                    "bank_account": {
                                        "type": "integer"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful updated"
                    },
                    "302": {
                        "description": "Validation failed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/clients/{id}/transactions": {
            "get": {
                "tags": [
                    "4. Clients - Klientlar"
                ],
                "summary": "Get client transactions",
                "operationId": "6d56a95fd19df19bf76dd9c31e6e836a",
                "parameters": [
                    {
                        "name": "supplier",
                        "in": "path",
                        "description": "ID of a client",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    },
                    {
                        "name": "from_date",
                        "in": "query",
                        "description": "from_date",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-25"
                        }
                    },
                    {
                        "name": "to_date",
                        "in": "query",
                        "description": "to_date",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-27"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/client-transactions/": {
            "get": {
                "tags": [
                    "4.2. Client transactions - Klientning o'tkazmalari"
                ],
                "summary": "Get list of clients' transactions",
                "operationId": "4c50cc14959bfc5698669ba7e012b940",
                "parameters": [
                    {
                        "name": "from_date",
                        "in": "query",
                        "description": "from_date for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-25"
                        }
                    },
                    {
                        "name": "to_date",
                        "in": "query",
                        "description": "to_date for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-27"
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "description": "type for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "yurudik|jismoniy"
                        }
                    },
                    {
                        "name": "type",
                        "in": "query",
                        "description": "search for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "Search"
                        }
                    },
                    {
                        "name": "is_minus",
                        "in": "query",
                        "description": "is_minus for filtering",
                        "required": false,
                        "schema": {
                            "type": "boolean",
                            "example": "is_minus"
                        }
                    },
                    {
                        "name": "month",
                        "in": "query",
                        "description": "month for filtering",
                        "required": false,
                        "schema": {
                            "type": "date",
                            "example": "2022-01"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "4.2. Client transactions - Klientning o'tkazmalari"
                ],
                "summary": "Create new client transaction",
                "operationId": "e3e021b7f8e3ad69906f8fd583e4f794",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "client_id": {
                                        "type": "number"
                                    },
                                    "received_amount": {
                                        "type": "number"
                                    },
                                    "paid_amount": {
                                        "type": "number"
                                    },
                                    "date": {
                                        "type": "string",
                                        "format": "date"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/single-client-transactions/": {
            "get": {
                "tags": [
                    "4.2. Client transactions - Klientning o'tkazmalari"
                ],
                "summary": "Get list of client's transactions",
                "operationId": "435b7c98932dcff8a320c3a265fd8557",
                "parameters": [
                    {
                        "name": "month",
                        "in": "query",
                        "description": "month for filtering",
                        "required": false,
                        "schema": {
                            "type": "date",
                            "example": "2022-01"
                        }
                    },
                    {
                        "name": "client_id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "number",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/add-or-update-client-transaction/": {
            "post": {
                "tags": [
                    "5.2. Add or Update client transaction by quick form - klient o'tkazmalarini tezkor forma orqali qilish"
                ],
                "summary": "Add or Update client transaction",
                "operationId": "f96186a06ed5f211e7d4dc5b19c255a6",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "supplier_id": {
                                        "type": "number"
                                    },
                                    "type": {
                                        "description": "received|paid",
                                        "type": "string"
                                    },
                                    "amount": {
                                        "type": "number"
                                    },
                                    "date": {
                                        "type": "string",
                                        "format": "date"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/client-transactions/{id}": {
            "delete": {
                "tags": [
                    "4.2. Client transactions - Klientning o'tkazmalari"
                ],
                "summary": "Delete client transaction",
                "operationId": "28376376c0fc7deef44158930bee00bf",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "patch": {
                "tags": [
                    "4.2. Client transactions - Klientning o'tkazmalari"
                ],
                "summary": "Update client transaction",
                "operationId": "c8ff86043de74bb610aa9cd444da17cd",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "client_id": {
                                        "type": "number"
                                    },
                                    "received_amount": {
                                        "type": "number"
                                    },
                                    "paid_amount": {
                                        "type": "number"
                                    },
                                    "date": {
                                        "type": "string",
                                        "format": "date"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/employees/": {
            "get": {
                "tags": [
                    "3. Employees - Xodimlar"
                ],
                "summary": "Get list of employees",
                "operationId": "a0ced1b2e6d2559845cf531e2dcf118c",
                "parameters": [
                    {
                        "name": "from_date",
                        "in": "query",
                        "description": "from_date for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-25"
                        }
                    },
                    {
                        "name": "to_date",
                        "in": "query",
                        "description": "to_date for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-27"
                        }
                    },
                    {
                        "name": "is_available_driver",
                        "in": "path",
                        "description": "is_available_driver -  to get drivers",
                        "required": false,
                        "schema": {
                            "type": "boolean",
                            "example": "true"
                        }
                    },
                    {
                        "name": "is_all",
                        "in": "path",
                        "description": "is_all -  to get only employees",
                        "required": false,
                        "schema": {
                            "type": "boolean",
                            "example": "true"
                        }
                    },
                    {
                        "name": "without_salary",
                        "in": "path",
                        "description": "without_salary -  to get only employees without salary",
                        "required": false,
                        "schema": {
                            "type": "boolean",
                            "example": "true"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "3. Employees - Xodimlar"
                ],
                "summary": "Create new employee",
                "operationId": "b4735e62eb537ee555cc3f27fd0dce7e",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "firm_id": {
                                        "type": "number"
                                    },
                                    "first_name": {
                                        "type": "string"
                                    },
                                    "last_name": {
                                        "type": "string"
                                    },
                                    "inn": {
                                        "type": "string"
                                    },
                                    "address": {
                                        "type": "string"
                                    },
                                    "profession": {
                                        "type": "string"
                                    },
                                    "phone": {
                                        "type": "string"
                                    },
                                    "balance": {
                                        "type": "integer"
                                    },
                                    "status": {
                                        "description": "hired | fired",
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/employees/professions": {
            "get": {
                "tags": [
                    "3. Employees - Xodimlar"
                ],
                "summary": "Get list of existing employee's professions",
                "operationId": "b82ccd453d0e48bf38e48a4aff64d86f",
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/employees/{id}/transactions": {
            "get": {
                "tags": [
                    "3. Employees - Xodimlar"
                ],
                "summary": "Get employee transactions",
                "operationId": "ac137a59454c6827809c9a5900fafd8e",
                "parameters": [
                    {
                        "name": "supplier",
                        "in": "path",
                        "description": "ID of a client",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    },
                    {
                        "name": "from_date",
                        "in": "query",
                        "description": "from_date",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-25"
                        }
                    },
                    {
                        "name": "to_date",
                        "in": "query",
                        "description": "to_date",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-27"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/employees/{id}": {
            "get": {
                "tags": [
                    "3. Employees - Xodimlar"
                ],
                "summary": "Get employee data",
                "operationId": "44ff69fd7d2a941fa5516675a2ca3a27",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    },
                    {
                        "name": "transactions_from_date",
                        "in": "query",
                        "description": "transactions_from_date",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-25"
                        }
                    },
                    {
                        "name": "transactions_to_date",
                        "in": "query",
                        "description": "transactions_to_date",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-27"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "3. Employees - Xodimlar"
                ],
                "summary": "Delete employee",
                "operationId": "cab954f1fe072d73d265b988e91a5baf",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "patch": {
                "tags": [
                    "3. Employees - Xodimlar"
                ],
                "summary": "Update new employee",
                "operationId": "4e8c944d75f2e57adb9de6b0137ef643",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "firm_id": {
                                        "type": "number"
                                    },
                                    "first_name": {
                                        "type": "string"
                                    },
                                    "last_name": {
                                        "type": "string"
                                    },
                                    "profession": {
                                        "type": "string"
                                    },
                                    "inn": {
                                        "type": "string"
                                    },
                                    "address": {
                                        "type": "string"
                                    },
                                    "phone": {
                                        "type": "string"
                                    },
                                    "balance": {
                                        "type": "integer"
                                    },
                                    "status": {
                                        "description": "hired | fired",
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/employee-transactions/": {
            "get": {
                "tags": [
                    "3.4. Employee transactions - Xodimlarning transaksiyalari"
                ],
                "summary": "Get list of employee transactions",
                "operationId": "9d185d8f7249eb75291c1844531013ae",
                "parameters": [
                    {
                        "name": "from_date",
                        "in": "query",
                        "description": "from_date for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-25"
                        }
                    },
                    {
                        "name": "to_date",
                        "in": "query",
                        "description": "to_date for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-27"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "3.4. Employee transactions - Xodimlarning transaksiyalari"
                ],
                "summary": "Create new employee transaction",
                "operationId": "015f16e8334aba4315f147d3059053a5",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "employee_id": {
                                        "type": "number"
                                    },
                                    "earning_amount": {
                                        "type": "number"
                                    },
                                    "payment_amount": {
                                        "type": "number"
                                    },
                                    "date": {
                                        "type": "string",
                                        "format": "date"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/single-employee-transactions/": {
            "get": {
                "tags": [
                    "3.4. Employee transactions - Xodimlarning transaksiyalari"
                ],
                "summary": "Get list of employee transactions",
                "operationId": "da8a960f11e37cd21ad97ea655b0b1de",
                "parameters": [
                    {
                        "name": "employee",
                        "in": "path",
                        "description": "transactions of employee",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "5"
                        }
                    },
                    {
                        "name": "month",
                        "in": "query",
                        "description": "month for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-25"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/employee-transactions/{id}": {
            "get": {
                "tags": [
                    "3.4. Employee transactions - Xodimlarning transaksiyalari"
                ],
                "summary": "Get employee transaction",
                "operationId": "1d450615c934182356d36c280554a0e5",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "3.4. Employee transactions - Xodimlarning transaksiyalari"
                ],
                "summary": "Delete employee transaction",
                "operationId": "b979ee58ed29dcb90e3b94663c033698",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "patch": {
                "tags": [
                    "3.4. Employee transactions - Xodimlarning transaksiyalari"
                ],
                "summary": "Update employee transaction",
                "operationId": "2d7148de445eeaafdbe10b535cfe4163",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "employee_id": {
                                        "type": "number"
                                    },
                                    "earning_amount": {
                                        "type": "number"
                                    },
                                    "payment_amount": {
                                        "type": "number"
                                    },
                                    "date": {
                                        "type": "string",
                                        "format": "date"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/expenses/": {
            "get": {
                "tags": [
                    "12.1 Expenses - Harajatlar"
                ],
                "summary": "Get list of expenses",
                "operationId": "65b1098f2fba022d7d4e5b4598c9431c",
                "parameters": [
                    {
                        "name": "type",
                        "in": "query",
                        "description": "type for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "daily"
                        }
                    },
                    {
                        "name": "category",
                        "in": "query",
                        "description": "category for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "Kommunal to'lov"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "12.1 Expenses - Harajatlar"
                ],
                "summary": "Create new expense",
                "operationId": "4911fd841c41cc300645759eec969ab2",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "expense_template_id": {
                                        "type": "number"
                                    },
                                    "amount": {
                                        "type": "number"
                                    },
                                    "description": {
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/expenses/{id}": {
            "get": {
                "tags": [
                    "12.1 Expenses - Harajatlar"
                ],
                "summary": "Get expense data",
                "operationId": "b8d5c673ecdbb6a51bea7ec7cc5d0e30",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "12.1 Expenses - Harajatlar"
                ],
                "summary": "Delete expense",
                "operationId": "b261a1443844b958952ae83b03fbbfa3",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "patch": {
                "tags": [
                    "12.1 Expenses - Harajatlar"
                ],
                "summary": "Update a expense",
                "operationId": "e976a7fe9afc75de652b1960bfe6edaa",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "expense_template_id": {
                                        "type": "number"
                                    },
                                    "amount": {
                                        "type": "number"
                                    },
                                    "description": {
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/expense-templates/": {
            "get": {
                "tags": [
                    "12. Expense Templates - Harajat shablonlari"
                ],
                "summary": "Get list of expense templates",
                "operationId": "503d749b96f468e8c27bd2f53825f58b",
                "parameters": [
                    {
                        "name": "type",
                        "in": "query",
                        "description": "type for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "daily"
                        }
                    },
                    {
                        "name": "search",
                        "in": "query",
                        "description": "search for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "Non"
                        }
                    },
                    {
                        "name": "category",
                        "in": "query",
                        "description": "category for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "Kommunal tolov"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "12. Expense Templates - Harajat shablonlari"
                ],
                "summary": "Create new expense template",
                "operationId": "3224778c55c25a8b1f30c29fa5b5654d",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "category": {
                                        "type": "string"
                                    },
                                    "type": {
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/expense-templates/{id}": {
            "get": {
                "tags": [
                    "12. Expense Templates - Harajat shablonlari"
                ],
                "summary": "Get expense template data",
                "operationId": "f6b2e7d33129d948429a7cdb92cb7c7e",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "12. Expense Templates - Harajat shablonlari"
                ],
                "summary": "Delete expense template",
                "operationId": "743aeb31fc6dca2b0c82f3504640a7f6",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "patch": {
                "tags": [
                    "12. Expense Templates - Harajat shablonlari"
                ],
                "summary": "Update a expense template",
                "operationId": "6dead8ad875110e868d56515007fd54c",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "category": {
                                        "type": "string"
                                    },
                                    "type": {
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/firms/": {
            "get": {
                "tags": [
                    "6. Firms - firmalar"
                ],
                "summary": "Get list of filials",
                "operationId": "af1df76bb975c3967caf38b5a8fb2a48",
                "parameters": [
                    {
                        "name": "from_date",
                        "in": "query",
                        "description": "from_date for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-25"
                        }
                    },
                    {
                        "name": "to_date",
                        "in": "query",
                        "description": "to_date for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-27"
                        }
                    },
                    {
                        "name": "is_all",
                        "in": "query",
                        "description": "is_all for filtering",
                        "required": false,
                        "schema": {
                            "type": "boolean",
                            "example": "true"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "6. Firms - firmalar"
                ],
                "summary": "Create new firm",
                "operationId": "759c7f9eed021051e19fdf653d934c73",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "manager_id": {
                                        "type": "number"
                                    },
                                    "address": {
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/firms/{id}": {
            "get": {
                "tags": [
                    "6. Firms - firmalar"
                ],
                "summary": "Get firm data",
                "operationId": "78a88531bdbef77105dbf08b457eb0a5",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "6. Firms - firmalar"
                ],
                "summary": "Delete firm",
                "operationId": "f4e8e953039b1e6519bce7e755112076",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "patch": {
                "tags": [
                    "6. Firms - firmalar"
                ],
                "summary": "Update firm",
                "operationId": "f143524056367d61a4620a010bcd6000",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "manager_id": {
                                        "type": "string"
                                    },
                                    "address": {
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/materials/": {
            "get": {
                "tags": [
                    "10. Materials - xom ashyolar"
                ],
                "summary": "Get list of materials",
                "operationId": "fb37e971adcc26f70e813d2d2941da27",
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "description": "search for look up",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "armatura"
                        }
                    },
                    {
                        "name": "from_date",
                        "in": "query",
                        "description": "from_date for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-25"
                        }
                    },
                    {
                        "name": "to_date",
                        "in": "query",
                        "description": "to_date for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-27"
                        }
                    },
                    {
                        "name": "is_all",
                        "in": "query",
                        "description": "to get all materials",
                        "required": false,
                        "schema": {
                            "type": "boolean",
                            "example": "false"
                        }
                    },
                    {
                        "name": "without_relationship",
                        "in": "query",
                        "description": "to get all materials without relationship",
                        "required": false,
                        "schema": {
                            "type": "boolean",
                            "example": "false"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful retrieved"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "10. Materials - xom ashyolar"
                ],
                "summary": "Create new material",
                "operationId": "5ba2181c7e55e22011c718d4864cb5b7",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "quantity": {
                                        "type": "number"
                                    },
                                    "unit_id": {
                                        "type": "number"
                                    },
                                    "unit_alternative_id": {
                                        "type": "number"
                                    },
                                    "multiplier": {
                                        "type": "number"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/materials/{id}": {
            "get": {
                "tags": [
                    "10. Materials - xom ashyolar"
                ],
                "summary": "Get material data",
                "operationId": "aad2e2cc01afd991dc5c79f8b11ee100",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "10. Materials - xom ashyolar"
                ],
                "summary": "Delete material",
                "operationId": "d1950613fe1009ec36d23858d3fd25c1",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "patch": {
                "tags": [
                    "10. Materials - xom ashyolar"
                ],
                "summary": "Update material",
                "operationId": "bc67eb74fc892c1a6ccf3be95a4d521d",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "quantity": {
                                        "type": "number"
                                    },
                                    "unit_id": {
                                        "type": "number"
                                    },
                                    "unit_alternative_id": {
                                        "type": "number"
                                    },
                                    "multiplier": {
                                        "type": "number"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/material-imports/{supplier}": {
            "get": {
                "tags": [
                    "5.1. Material imports - Import qilingan materiallar"
                ],
                "summary": "Get list of Suppliers' Materials",
                "operationId": "6f938a5b4cdf7f7d692ed42f7f568511",
                "parameters": [
                    {
                        "name": "from_date",
                        "in": "query",
                        "description": "from_date for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-25"
                        }
                    },
                    {
                        "name": "to_date",
                        "in": "query",
                        "description": "to_date for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-27"
                        }
                    },
                    {
                        "name": "supplier",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "number",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/material-imports/": {
            "get": {
                "tags": [
                    "5.1. Material imports - Import qilingan materiallar"
                ],
                "summary": "Get list of Supplier's Materials",
                "operationId": "d1f58540a239d536b9d3550d6bfa3e6f",
                "parameters": [
                    {
                        "name": "from_date",
                        "in": "query",
                        "description": "from_date for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-25"
                        }
                    },
                    {
                        "name": "to_date",
                        "in": "query",
                        "description": "to_date for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-27"
                        }
                    },
                    {
                        "name": "supplier_id",
                        "in": "query",
                        "description": "ID",
                        "required": false,
                        "schema": {
                            "type": "number",
                            "example": "1"
                        }
                    },
                    {
                        "name": "warehouse_id",
                        "in": "query",
                        "description": "ID",
                        "required": false,
                        "schema": {
                            "type": "number",
                            "example": "1"
                        }
                    },
                    {
                        "name": "material_id",
                        "in": "query",
                        "description": "ID",
                        "required": false,
                        "schema": {
                            "type": "number",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "5.1. Material imports - Import qilingan materiallar"
                ],
                "summary": "Create new material import",
                "operationId": "cf0c4b1ccce17acd43925023fccbea07",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "material_id": {
                                        "type": "number"
                                    },
                                    "supplier_id": {
                                        "type": "number"
                                    },
                                    "warehouse_id": {
                                        "type": "number"
                                    },
                                    "quantity": {
                                        "type": "number"
                                    },
                                    "price": {
                                        "type": "number"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/material-imports/{id}": {
            "get": {
                "tags": [
                    "5.1. Material imports - Import qilingan materiallar"
                ],
                "summary": "Get a Material import",
                "operationId": "c3e7430a59d33b3efd5dd74961e3a25a",
                "parameters": [
                    {
                        "name": "supplier",
                        "in": "path",
                        "description": "ID",
                        "required": false,
                        "schema": {
                            "type": "number",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "5.1. Material imports - Import qilingan materiallar"
                ],
                "summary": "Delete Supplier Material",
                "operationId": "32382ed8a3d6e9f05638b5ac36e739c2",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "patch": {
                "tags": [
                    "5.1. Material imports - Import qilingan materiallar"
                ],
                "summary": "Update supplier's material",
                "operationId": "0d57c5831c7b118604fbf6be7e33a373",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "material_id": {
                                        "type": "number"
                                    },
                                    "quantity": {
                                        "type": "number"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/products/": {
            "get": {
                "tags": [
                    "11.2 Products - Mahsulotlar"
                ],
                "summary": "Get list of products",
                "operationId": "17d01c7f625be78a1a61a4b05978cc2e",
                "parameters": [
                    {
                        "name": "search",
                        "in": "query",
                        "description": "search for look up",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "plita"
                        }
                    },
                    {
                        "name": "is_all",
                        "in": "query",
                        "description": "is_all to get list of products only name and id",
                        "required": false,
                        "schema": {
                            "type": "boolean",
                            "example": "false"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "11.2 Products - Mahsulotlar"
                ],
                "summary": "Create new product",
                "operationId": "88bedc319d42f3e30fa51a7051b0013f",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "product_template_id": {
                                        "type": "number"
                                    },
                                    "quantity": {
                                        "type": "number"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                }
            }
        },
        "/products/{id}": {
            "get": {
                "tags": [
                    "11.2 Products - Mahsulotlar"
                ],
                "summary": "Get product data",
                "operationId": "b46f4aa73232d0368eee698a082342a4",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "11.2 Products - Mahsulotlar"
                ],
                "summary": "Delete product",
                "operationId": "fe34b364a3f192305598b65d04d06b5d",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "patch": {
                "tags": [
                    "11.2 Products - Mahsulotlar"
                ],
                "summary": "Update a product",
                "operationId": "cd5746566cbd37ef36175b7e840f6e28",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "product_template_id": {
                                        "type": "number"
                                    },
                                    "quantity": {
                                        "type": "number"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                }
            }
        },
        "/product-deliveries/": {
            "get": {
                "tags": [
                    "11.3 Products deliveries - Mahsulot yetakzish yetkazishlar"
                ],
                "summary": "Get list of product deliveries",
                "operationId": "c9b46f6e6e773c929416cf12fad58c1c",
                "parameters": [
                    {
                        "name": "from_date",
                        "in": "query",
                        "description": "from_date for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-25"
                        }
                    },
                    {
                        "name": "to_date",
                        "in": "query",
                        "description": "to_date for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-27"
                        }
                    },
                    {
                        "name": "driver_id",
                        "in": "query",
                        "description": "driver_id to get by driver",
                        "required": false,
                        "schema": {
                            "type": "number",
                            "example": "1"
                        }
                    },
                    {
                        "name": "transport_id",
                        "in": "query",
                        "description": "transport_id to get by transport",
                        "required": false,
                        "schema": {
                            "type": "number",
                            "example": "1"
                        }
                    },
                    {
                        "name": "client_id",
                        "in": "query",
                        "description": "client_id to get by client",
                        "required": false,
                        "schema": {
                            "type": "number",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "11.3 Products deliveries - Mahsulot yetakzish yetkazishlar"
                ],
                "summary": "Create new product delivery",
                "operationId": "fd4afb815debf8249763539be4bb1d51",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "client_id": {
                                        "type": "number"
                                    },
                                    "transport_id": {
                                        "type": "number"
                                    },
                                    "driver_id": {
                                        "type": "number"
                                    },
                                    "round": {
                                        "type": "number"
                                    },
                                    "price": {
                                        "type": "number"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/product-deliveries/{id}": {
            "get": {
                "tags": [
                    "11.3 Products deliveries - Mahsulot yetakzish yetkazishlar"
                ],
                "summary": "Get product delivery data",
                "operationId": "bc1536ef598b5b9fd082526570991ea1",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "11.3 Products deliveries - Mahsulot yetakzish yetkazishlar"
                ],
                "summary": "Delete product delivery",
                "operationId": "37373e508b1133a9782c5498d5569b4b",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "patch": {
                "tags": [
                    "11.3 Products deliveries - Mahsulot yetakzish yetkazishlar"
                ],
                "summary": "Update product delivery",
                "operationId": "302b0565772e9b887eee270460c17c38",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "client_id": {
                                        "type": "number"
                                    },
                                    "driver_id": {
                                        "type": "number"
                                    },
                                    "round": {
                                        "type": "number"
                                    },
                                    "price": {
                                        "type": "number"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/product-materials/": {
            "get": {
                "tags": [
                    "11 Product materials - Mahsulot materiallari"
                ],
                "summary": "Get list of product materials",
                "operationId": "b487e9a528b2d83c53047297e16aeb28",
                "parameters": [
                    {
                        "name": "product_id",
                        "in": "query",
                        "description": "product_id to get by product",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-25"
                        }
                    },
                    {
                        "name": "product_template_id",
                        "in": "query",
                        "description": "product_template_id to get by product_template",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-27"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "11 Product materials - Mahsulot materiallari"
                ],
                "summary": "Create new product material",
                "operationId": "30b7d6cc4435c3c4cbae9120f879b610",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "product_template_id": {
                                        "type": "number"
                                    },
                                    "material_id": {
                                        "type": "number"
                                    },
                                    "unit_id": {
                                        "type": "number"
                                    },
                                    "unit_value": {
                                        "type": "number"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/product-materials/{id}": {
            "get": {
                "tags": [
                    "11 Product materials - Mahsulot materiallari"
                ],
                "summary": "Get product material data",
                "operationId": "65cdb83d0e0380641f2a6be8e731b3a1",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "11 Product materials - Mahsulot materiallari"
                ],
                "summary": "Delete product material",
                "operationId": "1e0b8d8bec10317700ad0c5a1a24e0a7",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "patch": {
                "tags": [
                    "11 Product materials - Mahsulot materiallari"
                ],
                "summary": "Update a product material",
                "operationId": "9babb653335fcfeffc08dc53b80af82b",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "product_template_id": {
                                        "type": "number"
                                    },
                                    "material_id": {
                                        "type": "number"
                                    },
                                    "unit_id": {
                                        "type": "number"
                                    },
                                    "unit_value": {
                                        "type": "number"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/product-templates/": {
            "get": {
                "tags": [
                    "11.1 Product Templates - Mahsulot shablonlari"
                ],
                "summary": "Get list of products",
                "operationId": "790f5e068f270a326ee0e2207f6d3215",
                "parameters": [
                    {
                        "name": "is_all",
                        "in": "path",
                        "description": "is_all for select",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "11.1 Product Templates - Mahsulot shablonlari"
                ],
                "summary": "Create new product template",
                "operationId": "dac737d76c6415d24bdb9bdcbf8fa52f",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "product_name": {
                                        "type": "string"
                                    },
                                    "materials": {
                                        "description": "material objects containing material_id, unit_id, unit_value",
                                        "type": "array",
                                        "items": {
                                            "properties": {
                                                "id": {
                                                    "type": "number"
                                                },
                                                "unit_id": {
                                                    "type": "number"
                                                },
                                                "unit_value": {
                                                    "type": "number"
                                                }
                                            },
                                            "type": "object"
                                        }
                                    },
                                    "description": {
                                        "type": "string"
                                    },
                                    "unit_id": {
                                        "type": "number"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/product-templates/{id}": {
            "get": {
                "tags": [
                    "11.1 Product Templates - Mahsulot shablonlari"
                ],
                "summary": "Get product template data",
                "operationId": "deea0a7b4865f1674f7d1482ffe6c9c1",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "11.1 Product Templates - Mahsulot shablonlari"
                ],
                "summary": "Delete product template",
                "operationId": "f7f5952ea1a8a41e0b158edf1dddb403",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "patch": {
                "tags": [
                    "11.1 Product Templates - Mahsulot shablonlari"
                ],
                "summary": "Update product template",
                "operationId": "b6c1c464308a58c76d7af6f626f2bab8",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "materials": {
                                        "description": "material objects containing material_id, unit_id, unit_value",
                                        "type": "array",
                                        "items": {
                                            "properties": {
                                                "id": {
                                                    "type": "number"
                                                },
                                                "unit_id": {
                                                    "type": "number"
                                                },
                                                "unit_value": {
                                                    "type": "number"
                                                }
                                            },
                                            "type": "object"
                                        }
                                    },
                                    "description": {
                                        "type": "string"
                                    },
                                    "unit_alternative_id": {
                                        "type": "number"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/productions/": {
            "get": {
                "tags": [
                    "11.4 Productions - Ishlab chiqarishlar"
                ],
                "summary": "Get list of productions",
                "operationId": "9938130a49d488bb536a83d5b2e1bcea",
                "parameters": [
                    {
                        "name": "product_id",
                        "in": "path",
                        "description": "by product_id",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "11.4 Productions - Ishlab chiqarishlar"
                ],
                "summary": "Create new production",
                "operationId": "702010734e4c9f8941b657eecd5e8238",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "product_id": {
                                        "type": "number"
                                    },
                                    "warehouse_id": {
                                        "type": "number"
                                    },
                                    "quantity": {
                                        "type": "number"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/productions/{id}": {
            "get": {
                "tags": [
                    "11.4 Productions - Ishlab chiqarishlar"
                ],
                "summary": "Get production data",
                "operationId": "ccfb36ee78e9878225afaea8fe6fed96",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "11.4 Productions - Ishlab chiqarishlar"
                ],
                "summary": "Delete production",
                "operationId": "220697e19abe6adbf59c2d9e0b567831",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "patch": {
                "tags": [
                    "11.4 Productions - Ishlab chiqarishlar"
                ],
                "summary": "Update a production",
                "operationId": "ef9efcd897743e618bf38dd86e8ef834",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "product_id": {
                                        "type": "number"
                                    },
                                    "warehouse_id": {
                                        "type": "number"
                                    },
                                    "quantity": {
                                        "type": "number"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/salaries/": {
            "get": {
                "tags": [
                    "3.3. Employees' salaries - Hodimlarning oyliklari"
                ],
                "summary": "get employees' salaries",
                "operationId": "3f4df05a38546c2fb89075c61297e25a",
                "parameters": [
                    {
                        "name": "type",
                        "in": "query",
                        "description": "get salaries by type fixed|daily",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "fixed"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "3.3. Employees' salaries - Hodimlarning oyliklari"
                ],
                "summary": "Create new employee salary",
                "operationId": "861f1e33591700bc3cc15991196190de",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "employee_id": {
                                        "type": "number"
                                    },
                                    "amount": {
                                        "type": "number"
                                    },
                                    "type": {
                                        "description": "fixed|daily",
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/salaries/{id}": {
            "get": {
                "tags": [
                    "3.3. Employees' salaries - Hodimlarning oyliklari"
                ],
                "summary": "Get firm data",
                "operationId": "4507785ff48fb155a6068db62dd1e3ef",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "3.3. Employees' salaries - Hodimlarning oyliklari"
                ],
                "summary": "Delete salary",
                "operationId": "e91701fe7eaf662d3258e0b944ae07e1",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "patch": {
                "tags": [
                    "3.3. Employees' salaries - Hodimlarning oyliklari"
                ],
                "summary": "Update a employee salary",
                "operationId": "a55de8ec1771e827a31c01a7f505fd82",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "employee_id": {
                                        "type": "number"
                                    },
                                    "amount": {
                                        "type": "number"
                                    },
                                    "type": {
                                        "description": "fixed|daily",
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/sales/": {
            "get": {
                "tags": [
                    "13.1. Sales - Sotuvlar"
                ],
                "summary": "Get list of sales",
                "operationId": "a466d12281b7daad7e910cde98205868",
                "parameters": [
                    {
                        "name": "from_date",
                        "in": "query",
                        "description": "from_date for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-25"
                        }
                    },
                    {
                        "name": "to_date",
                        "in": "query",
                        "description": "to_date for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-27"
                        }
                    },
                    {
                        "name": "firm_id",
                        "in": "query",
                        "description": "firm_id for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "firm_id "
                        }
                    },
                    {
                        "name": "client_id",
                        "in": "query",
                        "description": "client_id for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "client_id"
                        }
                    },
                    {
                        "name": "product_id",
                        "in": "query",
                        "description": "product_id for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "product_id"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "13.1. Sales - Sotuvlar"
                ],
                "summary": "Create new sale",
                "operationId": "8c9c55fab3cd244e3095f536d60a7552",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "product_id": {
                                        "type": "number"
                                    },
                                    "seller_id": {
                                        "type": "number"
                                    },
                                    "client_id": {
                                        "type": "number"
                                    },
                                    "quantity": {
                                        "type": "number"
                                    },
                                    "price": {
                                        "type": "number"
                                    },
                                    "date": {
                                        "type": "string",
                                        "format": "date"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/sales/{id}": {
            "get": {
                "tags": [
                    "13.1. Sales - Sotuvlar"
                ],
                "summary": "Get sale data",
                "operationId": "02d389d8a336b4b9ba95512cc271ebf0",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "13.1. Sales - Sotuvlar"
                ],
                "summary": "Delete sale",
                "operationId": "30ff6856ef09b8ec7f6b18ed7234eb44",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "patch": {
                "tags": [
                    "13.1. Sales - Sotuvlar"
                ],
                "summary": "Update sale",
                "operationId": "0360301f605ace0e6db3b2502f0a26c5",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "product_id": {
                                        "type": "number"
                                    },
                                    "seller_id": {
                                        "type": "number"
                                    },
                                    "client_id": {
                                        "type": "number"
                                    },
                                    "quantity": {
                                        "type": "number"
                                    },
                                    "price": {
                                        "type": "number"
                                    },
                                    "date": {
                                        "type": "string",
                                        "format": "date"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/spare-parts/": {
            "get": {
                "tags": [
                    "7.1 Spare Parts in the warehouse - Skladdagi zapchastlar"
                ],
                "summary": "Get list of spare parts",
                "operationId": "ec5e02d53f2533122357f2bc813c5d86",
                "parameters": [
                    {
                        "name": "from_date",
                        "in": "query",
                        "description": "from_date for filtering, paginated by 50",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-25"
                        }
                    },
                    {
                        "name": "to_date",
                        "in": "query",
                        "description": "to_date for filtering, paginated by 50",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-27"
                        }
                    },
                    {
                        "name": "unit_id",
                        "in": "query",
                        "description": "unit type for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "0"
                        }
                    },
                    {
                        "name": "quantity",
                        "in": "query",
                        "description": "quantity of available for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "0"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "7.1 Spare Parts in the warehouse - Skladdagi zapchastlar"
                ],
                "summary": "Create new spare part",
                "operationId": "157c36ddf5e903ec7d2c1cfe8ba7a679",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "quantity": {
                                        "type": "number"
                                    },
                                    "warehouse_id": {
                                        "type": "number"
                                    },
                                    "unit_id": {
                                        "type": "number"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/spare-parts/{id}": {
            "get": {
                "tags": [
                    "7.1 Spare Parts in the warehouse - Skladdagi zapchastlar"
                ],
                "summary": "Get spare part data",
                "operationId": "d27ba9a7f9652a95583c250d254519ba",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "7.1 Spare Parts in the warehouse - Skladdagi zapchastlar"
                ],
                "summary": "Delete spare part",
                "operationId": "79a8eacd9919fabe66fc8031be2fc5eb",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "patch": {
                "tags": [
                    "7.1 Spare Parts in the warehouse - Skladdagi zapchastlar"
                ],
                "summary": "Update spare part",
                "operationId": "4f6c41a14d858f536b813acc61ce271c",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "quantity": {
                                        "type": "number"
                                    },
                                    "warehouse_id": {
                                        "type": "number"
                                    },
                                    "unit_id": {
                                        "type": "number"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/sparepart-imports/": {
            "get": {
                "tags": [
                    "7.2. Spare-Part imports - Import qilingan zapchastlar"
                ],
                "summary": "Get list of spareparts imports",
                "operationId": "8b42f3702a8db32066bceb1c69d80392",
                "parameters": [
                    {
                        "name": "from_date",
                        "in": "query",
                        "description": "from_date for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-25"
                        }
                    },
                    {
                        "name": "to_date",
                        "in": "query",
                        "description": "to_date for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-27"
                        }
                    },
                    {
                        "name": "sparepart_id",
                        "in": "query",
                        "description": "ID",
                        "required": false,
                        "schema": {
                            "type": "number",
                            "example": "1"
                        }
                    },
                    {
                        "name": "warehouse_id",
                        "in": "query",
                        "description": "ID",
                        "required": false,
                        "schema": {
                            "type": "number",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "7.2. Spare-Part imports - Import qilingan zapchastlar"
                ],
                "summary": "Create new sparepart import",
                "operationId": "2d910a5460bf664280f75c98543832f9",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "sparepart_id": {
                                        "type": "number"
                                    },
                                    "warehouse_id": {
                                        "type": "number"
                                    },
                                    "quantity": {
                                        "type": "number"
                                    },
                                    "price": {
                                        "type": "number"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/sparepart-imports/{id}": {
            "get": {
                "tags": [
                    "7.2. Spare-Part imports - Import qilingan zapchastlar"
                ],
                "summary": "Get a sparepart import",
                "operationId": "8ab49bd9fdf85359758da0e47999c1c4",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "number",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "7.2. Spare-Part imports - Import qilingan zapchastlar"
                ],
                "summary": "Delete SparepartImport",
                "operationId": "ab1502580d76457b6b2822e253bb92ef",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "patch": {
                "tags": [
                    "7.2. Spare-Part imports - Import qilingan zapchastlar"
                ],
                "summary": "Update a sparepart import",
                "operationId": "e20dd2522b895f49b9f8b5956a4ecfb1",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "sparepart_id": {
                                        "type": "number"
                                    },
                                    "quantity": {
                                        "type": "number"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/statistics/numbers": {
            "get": {
                "tags": [
                    "14. Statistics"
                ],
                "summary": "Get statistics data",
                "operationId": "1986b5bfba037665a81721c91306a407",
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/statistics/incomes-and-expenses": {
            "get": {
                "tags": [
                    "14. Statistics"
                ],
                "summary": "Get statistics of incomes-and-expenses",
                "operationId": "e9cd07d203af314f306c8901b9a97064",
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/suppliers/": {
            "get": {
                "tags": [
                    "5. Suppliers - поставщики"
                ],
                "summary": "Get list of suppliers",
                "operationId": "953637c736b1e224a5950a238cfbcb29",
                "parameters": [
                    {
                        "name": "from_date",
                        "in": "query",
                        "description": "from_date for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-25"
                        }
                    },
                    {
                        "name": "to_date",
                        "in": "query",
                        "description": "to_date for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-27"
                        }
                    },
                    {
                        "name": "search",
                        "in": "query",
                        "description": "search for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "search"
                        }
                    },
                    {
                        "name": "is_all",
                        "in": "query",
                        "description": "to get all for select",
                        "required": false,
                        "schema": {
                            "type": "boolean",
                            "example": "true"
                        }
                    },
                    {
                        "name": "client_id",
                        "in": "query",
                        "description": "with a client_id in addition",
                        "required": false,
                        "schema": {
                            "type": "number",
                            "example": "1"
                        }
                    },
                    {
                        "name": "is_available",
                        "in": "query",
                        "description": "unattached Clients to Suppliers",
                        "required": false,
                        "schema": {
                            "type": "boolean",
                            "example": "true"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful retrieved"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "5. Suppliers - поставщики"
                ],
                "summary": "Create new supplier",
                "operationId": "065fa5ac889e3d0ce48ee7a5e929cc7f",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "contractor": {
                                        "type": "string"
                                    },
                                    "phone": {
                                        "type": "string"
                                    },
                                    "inn": {
                                        "description": "INN => Identification number",
                                        "type": "string"
                                    },
                                    "is_special_client": {
                                        "description": "true|false => 1|0",
                                        "type": "string"
                                    },
                                    "client_id": {
                                        "description": "Client ID from clients",
                                        "type": "number"
                                    },
                                    "balance": {
                                        "type": "integer"
                                    },
                                    "bank_account": {
                                        "type": "integer"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/suppliers/{id}": {
            "get": {
                "tags": [
                    "5. Suppliers - поставщики"
                ],
                "summary": "Get supplier data",
                "operationId": "1f19f5f2fd9485928fb9b8b83cbe5e60",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "5. Suppliers - поставщики"
                ],
                "summary": "Delete supplier",
                "operationId": "c0c1db4a3637fbc1a208366687f6e526",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "patch": {
                "tags": [
                    "5. Suppliers - поставщики"
                ],
                "summary": "Update supplier",
                "operationId": "bcefd20931407bd2b0da0b95946c867f",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "contractor": {
                                        "type": "string"
                                    },
                                    "phone": {
                                        "type": "string"
                                    },
                                    "inn": {
                                        "description": "INN => Identification number",
                                        "type": "string"
                                    },
                                    "is_special_client": {
                                        "description": "true|false => 1|0",
                                        "type": "string"
                                    },
                                    "client_id": {
                                        "description": "Client ID from clients",
                                        "type": "number"
                                    },
                                    "balance": {
                                        "type": "integer"
                                    },
                                    "bank_account": {
                                        "type": "integer"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/suppliers/{id}/transactions": {
            "get": {
                "tags": [
                    "5. Suppliers - поставщики"
                ],
                "summary": "Get supplier transactions",
                "operationId": "378e166aca43d6449c219f79255c5443",
                "parameters": [
                    {
                        "name": "supplier",
                        "in": "path",
                        "description": "ID of a supplier",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    },
                    {
                        "name": "from_date",
                        "in": "query",
                        "description": "from_date",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-25"
                        }
                    },
                    {
                        "name": "to_date",
                        "in": "query",
                        "description": "to_date",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-27"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/supplier-transactions/": {
            "get": {
                "tags": [
                    "5.2. Suppliers transactions - Yetkazuvchilarning hisobidagi o'tkazmalar"
                ],
                "summary": "Get list of Suppliers transactions",
                "operationId": "d17f363360253e7f27350714e7192bcc",
                "parameters": [
                    {
                        "name": "from_date",
                        "in": "query",
                        "description": "from_date for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-25"
                        }
                    },
                    {
                        "name": "to_date",
                        "in": "query",
                        "description": "to_date for filtering",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "2021-11-27"
                        }
                    },
                    {
                        "name": "supplier_id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "number",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "5.2. Suppliers transactions - Yetkazuvchilarning hisobidagi o'tkazmalar"
                ],
                "summary": "Create new supplier transaction",
                "operationId": "e5c0f5bb03ac30685cb686645717766d",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "supplier_id": {
                                        "type": "number"
                                    },
                                    "received_amount": {
                                        "type": "number"
                                    },
                                    "paid_amount": {
                                        "type": "number"
                                    },
                                    "date": {
                                        "type": "string",
                                        "format": "date"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/single-supplier-transactions/": {
            "get": {
                "tags": [
                    "5.2. Supplier transactions - Yetkazuvchining o'tkazmalar"
                ],
                "summary": "Get list of Supplier's transactions",
                "operationId": "34c4c91b7d4bc393741e8fdc65663e37",
                "parameters": [
                    {
                        "name": "month",
                        "in": "query",
                        "description": "month for filtering",
                        "required": false,
                        "schema": {
                            "type": "date",
                            "example": "2022-01"
                        }
                    },
                    {
                        "name": "supplier_id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "number",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/add-or-update-supplier-transactions/": {
            "post": {
                "tags": [
                    "5.2. Add or Update Suppliers transactions by quick form - Yetkazuvchilarning o'tkazmalarini tezkor forma orqali qilish"
                ],
                "summary": "Add or Update supplier transaction",
                "operationId": "c88401b4ff6a07581e5d2e51236014aa",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "supplier_id": {
                                        "type": "number"
                                    },
                                    "type": {
                                        "description": "received|paid",
                                        "type": "string"
                                    },
                                    "amount": {
                                        "type": "number"
                                    },
                                    "date": {
                                        "type": "string",
                                        "format": "date"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/supplier-transactions/{id}": {
            "get": {
                "tags": [
                    "5.2. Suppliers transactions - Yetkazuvchilarning hisobidagi o'tkazmalar"
                ],
                "summary": "Get supplier transaction",
                "operationId": "f6e43591491caba31ed09e6f50481e09",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "5.2. Suppliers transactions - Yetkazuvchilarning hisobidagi o'tkazmalar"
                ],
                "summary": "Delete supplier transaction",
                "operationId": "0c402f83d53a542db13de31ff39b0969",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "patch": {
                "tags": [
                    "5.2. Suppliers transactions - Yetkazuvchilarning hisobidagi o'tkazmalar"
                ],
                "summary": "Update supplier transaction",
                "operationId": "f6cc01929e77684642f0830e201a9ab6",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "supplier_id": {
                                        "type": "number"
                                    },
                                    "received_amount": {
                                        "type": "number"
                                    },
                                    "paid_amount": {
                                        "type": "number"
                                    },
                                    "date": {
                                        "type": "string",
                                        "format": "date"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/transports/": {
            "get": {
                "tags": [
                    "8. Transports - moshinalar"
                ],
                "summary": "Get list of transports",
                "operationId": "931ef3a0a17af4e479de5580f71287ec",
                "parameters": [
                    {
                        "name": "is_all",
                        "in": "query",
                        "description": "to get all transports for select",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "true"
                        }
                    },
                    {
                        "name": "search",
                        "in": "query",
                        "description": "search for transports",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "kamaz"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "8. Transports - moshinalar"
                ],
                "summary": "Create new transport",
                "operationId": "37546da19c597eab750a9bf8cff9c186",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "plate": {
                                        "type": "string"
                                    },
                                    "driver_id": {
                                        "type": "number"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/transports/{id}": {
            "get": {
                "tags": [
                    "8. Transports - moshinalar"
                ],
                "summary": "Get transport data",
                "operationId": "66aecf761e280107b3434609bebf9734",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "8. Transports - moshinalar"
                ],
                "summary": "Delete transport",
                "operationId": "c1f00e752ef02e32a360224e55fa445e",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "patch": {
                "tags": [
                    "8. Transports - moshinalar"
                ],
                "summary": "Update a transport",
                "operationId": "1f557e9dcd3bb833fbb7ec02c9ef84f4",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "plate": {
                                        "type": "string"
                                    },
                                    "driver_id": {
                                        "type": "number"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/units/": {
            "get": {
                "tags": [
                    "9. Units( + Input units) - O'lchov turlari"
                ],
                "summary": "Get list of units",
                "operationId": "1948467b6fd0c175016faec1c3a1d80b",
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "9. Units( + Input units) - O'lchov turlari"
                ],
                "summary": "Create new unit",
                "operationId": "071e57fb89198dc56e28752d693426ba",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "symbol": {
                                        "type": "string"
                                    },
                                    "value": {
                                        "type": "number"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/units/{id}": {
            "get": {
                "tags": [
                    "9. Units( + Input units) - O'lchov turlari"
                ],
                "summary": "Get unit data",
                "operationId": "0201776ba8d022899ace833d121df500",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "9. Units( + Input units) - O'lchov turlari"
                ],
                "summary": "Delete unit",
                "operationId": "d3e29b865e015d5722ab83f0ff8e6104",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "patch": {
                "tags": [
                    "9. Units( + Input units) - O'lchov turlari"
                ],
                "summary": "Update unit",
                "operationId": "d9a6ec1b168c1f85d7d058a8bac99143",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "symbol": {
                                        "type": "string"
                                    },
                                    "value": {
                                        "type": "number"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/users/": {
            "get": {
                "tags": [
                    "2. Users - foydalanuvchilar"
                ],
                "summary": "Get list of useres",
                "operationId": "39d68ac51c41a767df58736a728f07eb",
                "parameters": [
                    {
                        "name": "is_available_manager",
                        "in": "query",
                        "description": "unattached users to firms as manager",
                        "required": false,
                        "schema": {
                            "type": "boolean",
                            "example": "true"
                        }
                    },
                    {
                        "name": "is_available_storekeeper",
                        "in": "query",
                        "description": "unattached users to firms as storekeeper",
                        "required": false,
                        "schema": {
                            "type": "boolean",
                            "example": "true"
                        }
                    },
                    {
                        "name": "is_seller",
                        "in": "query",
                        "description": "seller users",
                        "required": false,
                        "schema": {
                            "type": "boolean",
                            "example": "true"
                        }
                    },
                    {
                        "name": "search",
                        "in": "query",
                        "description": "search users",
                        "required": false,
                        "schema": {
                            "type": "string",
                            "example": "John"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "2. Users - foydalanuvchilar"
                ],
                "summary": "Create new user",
                "operationId": "9c07c31be80f9ab4c70fff842b0a1356",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "role_id": {
                                        "type": "number"
                                    },
                                    "email": {
                                        "type": "string"
                                    },
                                    "password": {
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/users/{id}": {
            "get": {
                "tags": [
                    "2. Users - foydalanuvchilar"
                ],
                "summary": "Get user data",
                "operationId": "910a0c7cf580e1c605648d82a4e57f46",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "2. Users - foydalanuvchilar"
                ],
                "summary": "Delete user",
                "operationId": "43dd20becb1f47444e484cbb18ce345c",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "patch": {
                "tags": [
                    "2. Users - foydalanuvchilar"
                ],
                "summary": "Update a user",
                "operationId": "6055962f27a3fb88a3445c27693dcf5f",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "role_id": {
                                        "type": "number"
                                    },
                                    "email": {
                                        "type": "string"
                                    },
                                    "password": {
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/warehouses/": {
            "get": {
                "tags": [
                    "7. Warehouses - skladlar"
                ],
                "summary": "Get list of warehouses",
                "operationId": "75ee542038bf89c6e868408d19d1be59",
                "parameters": [
                    {
                        "name": "type",
                        "in": "query",
                        "description": "to get warehouses by type options: product, part, material",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "example": "part"
                        }
                    },
                    {
                        "name": "search",
                        "in": "query",
                        "description": "search",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "example": "search"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "post": {
                "tags": [
                    "7. Warehouses - skladlar"
                ],
                "summary": "Create new warehouse",
                "operationId": "c9891ec39034671aa10c474f01b6ee35",
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "firm_id": {
                                        "type": "number"
                                    },
                                    "storekeeper_id": {
                                        "type": "number"
                                    },
                                    "type": {
                                        "description": "product | part | material",
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/warehouses/{id}": {
            "get": {
                "tags": [
                    "7. Warehouses - skladlar"
                ],
                "summary": "Get warehouse data",
                "operationId": "90ba5b27879a11bf31752545c6de33ff",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    },
                    {
                        "name": "materials_from_date",
                        "in": "query",
                        "description": "materials_from_date",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    },
                    {
                        "name": "materials_to_date",
                        "in": "query",
                        "description": "materials_to_date",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    },
                    {
                        "name": "search",
                        "in": "query",
                        "description": "search by materials name",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "delete": {
                "tags": [
                    "7. Warehouses - skladlar"
                ],
                "summary": "Delete warehouse",
                "operationId": "f5e6daf452272f2d1286d79d7f4a350f",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            },
            "patch": {
                "tags": [
                    "7. Warehouses - skladlar"
                ],
                "summary": "Update a warehouse",
                "operationId": "e1e205564c8c5834e93884cdc1932a14",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": "1"
                        }
                    }
                ],
                "requestBody": {
                    "content": {
                        "application/x-www-form-urlencoded": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string"
                                    },
                                    "firm_id": {
                                        "type": "number"
                                    },
                                    "storekeeper_id": {
                                        "type": "number"
                                    },
                                    "type": {
                                        "description": "product | part | material",
                                        "type": "string"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Successful executed"
                    },
                    "401": {
                        "description": "Token is not valid."
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        }
    },
    "security": {
        "bearer": {
            "type": "http",
            "description": "Authorization token obtained from logging in.",
            "name": "Authorization",
            "in": "header",
            "scheme": "bearer"
        }
    }
}