REST API

Menu

Get all menu items

Request

Response example

{
    "total": 1,
    "list": [
        {
            "id": "5992c23cdd217b18c",
            "name": "Спаржа з сиром «Тофу» та грибами шиітаке",
            "deleted": false,
            "description": "Хрустка спаржа, обсмажена з грибами Шиітаке та соєвим сиром «Тофу» під імбирно-кунжутною заправкою",
            "createdAt": "2017-08-15 09:43:24",
            "modifiedAt": "2017-08-15 09:43:24",
            "price": 95,
            "weight": 190,
            "category": "Закуски",
            "special": false,
            "new": true,
            "extra": "Японська кухня",
            "createdById": "1",
            "createdByName": "Admin",
            "modifiedById": null,
            "modifiedByName": null,
            "assignedUserId": "1",
            "assignedUserName": "Admin"
        }
    ]
}

Get some menu item

Request

Response example

{
    "id": "5992c23cdd217b18c",
    "name": "Спаржа з сиром «Тофу» та грибами шиітаке",
    "deleted": false,
    "description": "Хрустка спаржа, обсмажена з грибами Шиітаке та соєвим сиром «Тофу» під імбирно-кунжутною заправкою",
    "createdAt": "2017-08-15 09:43:24",
    "modifiedAt": "2017-08-15 09:43:24",
    "price": 95,
    "weight": 190,
    "category": "Закуски",
    "special": false,
    "new": true,
    "extra": "Японська кухня",
    "createdById": "1",
    "createdByName": "Admin",
    "modifiedById": null,
    "modifiedByName": null,
    "assignedUserId": "1",
    "assignedUserName": "Admin",
    "teamsIds": [],
    "teamsNames": {}
}

Add a new menu item

Request

Response example

{
    "id": "5992e58aa973bbc20",
    "name": "Тайский суп",
    "deleted": false,
    "description": "Гострий суп з морепродуктами, печерицями та імбирем",
    "createdAt": "2017-08-15 12:14:02",
    "modifiedAt": "2017-08-15 12:14:02",
    "price": 89,
    "weight": 220,
    "category": "Супи",
    "special": true,
    "new": true,
    "extra": "Тайська кухня",
    "createdById": "5992bee53f646d593"
}

Update some menu item

Request

Response example

{
    "id": "5992e58aa973bbc20",
    "name": "Тайский суп",
    "deleted": false,
    "description": "Гострий суп з морепродуктами, печерицями та імбирем",
    "createdAt": "2017-08-15 12:14:02",
    "modifiedAt": "2017-08-15 12:20:37",
    "price": 99,
    "weight": 220,
    "category": "Супи",
    "special": true,
    "new": true,
    "extra": "Тайська кухня",
    "createdById": "5992bee53f646d593",
    "createdByName": "test user",
    "modifiedById": "5992bee53f646d593",
    "modifiedByName": "test user",
    "assignedUserId": null,
    "assignedUserName": null
}

Delete some menu item

Request

Response example

true

Real estate

Get all realties

Request

Response example

{
    "total": 1,
    "list": [
        {
            "id": "599310e44fcb7a8f5",
            "name": null,
            "deleted": false,
            "description": null,
            "createdAt": "2017-08-15 15:19:00",
            "modifiedAt": "2017-08-15 15:19:00",
            "city": "Чернівці",
            "street": "Головна",
            "house": "1а",
            "flat": "118г",
            "floor": 3,
            "housetype": "Цегляний",
            "rooms": 3,
            "roomstype": "Не вказано",
            "areaall": 140,
            "arearooms": 120,
            "areakitchen": 20,
            "height": 3.75,
            "layout": "Старий фонд",
            "repair": "Євроремонт",
            "heating": "АГВ",
            "flooring": "Паркет",
            "price": 150000,
            "furniture": "Нові меблі",
            "createdById": "1",
            "createdByName": "Admin",
            "modifiedById": null,
            "modifiedByName": null,
            "assignedUserId": "1",
            "assignedUserName": "Admin"
        }
    ]
}

Get some realty

Request

Response example

{
    "id": "599310e44fcb7a8f5",
    "name": null,
    "deleted": false,
    "description": null,
    "createdAt": "2017-08-15 15:19:00",
    "modifiedAt": "2017-08-15 15:19:00",
    "city": "Чернівці",
    "street": "Головна",
    "house": "1а",
    "flat": "118г",
    "floor": 3,
    "housetype": "Цегляний",
    "rooms": 3,
    "roomstype": "Не вказано",
    "areaall": 140,
    "arearooms": 120,
    "areakitchen": 20,
    "height": 3.75,
    "layout": "Старий фонд",
    "repair": "Євроремонт",
    "heating": "АГВ",
    "flooring": "Паркет",
    "price": 150000,
    "furniture": "Нові меблі",
    "createdById": "1",
    "createdByName": "Admin",
    "modifiedById": null,
    "modifiedByName": null,
    "assignedUserId": "1",
    "assignedUserName": "Admin",
    "teamsIds": [],
    "teamsNames": {}
}

Add a new realty

Request

Response example

{
    "id": "5993133169db5cb07",
    "deleted": false,
    "createdAt": "2017-08-15 15:28:49",
    "modifiedAt": "2017-08-15 15:28:49",
    "city": "Чернівці",
    "street": "Турецька",
    "house": "2",
    "flat": "15",
    "floor": 2,
    "housetype": "Дерев'яний",
    "rooms": 2,
    "roomstype": "Не вказано",
    "areaall": 72,
    "arearooms": 50,
    "areakitchen": 22,
    "height": 3.15,
    "layout": "Чешка",
    "repair": "Євроремонт",
    "heating": "АГВ",
    "flooring": "Паркет",
    "price": 80000,
    "furniture": "Нові меблі",
    "createdById": "5992bee53f646d593"
}

Update some realty

Request

Response example

{
    "id": "5993133169db5cb07",
    "name": null,
    "deleted": false,
    "description": null,
    "createdAt": "2017-08-15 15:28:49",
    "modifiedAt": "2017-08-15 15:31:21",
    "city": "Чернівці",
    "street": "Українська",
    "house": "2",
    "flat": "15",
    "floor": 2,
    "housetype": "Дерев'яний",
    "rooms": 2,
    "roomstype": "Не вказано",
    "areaall": 72,
    "arearooms": 50,
    "areakitchen": 22,
    "height": 3.15,
    "layout": "Чешка",
    "repair": "Євроремонт",
    "heating": "АГВ",
    "flooring": "Паркет",
    "price": 80000,
    "furniture": "Нові меблі",
    "createdById": "5992bee53f646d593",
    "createdByName": "test user",
    "modifiedById": "5992bee53f646d593",
    "modifiedByName": "test user",
    "assignedUserId": null,
    "assignedUserName": null
}

Delete some realty

Request

Response example

true

Auto

Get all autos

Request

Response example

{
    "total": 1,
    "list": [
        {
            "id": "59946397186a7f296",
            "name": "Hyundai Coupe 2005",
            "deleted": false,
            "description": "Hyundai Coupe, 2005 року, Авто в хорошому стані.",
            "createdAt": "2017-08-16 15:24:07",
            "modifiedAt": "2017-08-16 15:24:07",
            "transportType": "Легкові",
            "run": 10000,
            "fuelConsumption": 6,
            "volume": 2,
            "fuel": "Бензин",
            "transmission": "Ручна / Механіка",
            "driveType": "Передній",
            "city": "Київ",
            "color": "Червоний",
            "abs": true,
            "centralLock": true,
            "airbag": true,
            "alarms": true,
            "price": 7000,
            "phone": "+380501112233",
            "createdById": "1",
            "createdByName": "Admin",
            "modifiedById": null,
            "modifiedByName": null,
            "assignedUserId": "1",
            "assignedUserName": "Admin"
        }
    ]
}

Get some auto

Request

Response example

{
    "id": "59946397186a7f296",
    "name": "Hyundai Coupe 2005",
    "deleted": false,
    "description": "Hyundai Coupe, 2005 року, Авто в хорошому стані.",
    "createdAt": "2017-08-16 15:24:07",
    "modifiedAt": "2017-08-16 15:24:07",
    "transportType": "Легкові",
    "run": 10000,
    "fuelConsumption": 6,
    "volume": 2,
    "fuel": "Бензин",
    "transmission": "Ручна / Механіка",
    "driveType": "Передній",
    "city": "Київ",
    "color": "Червоний",
    "abs": true,
    "centralLock": true,
    "airbag": true,
    "alarms": true,
    "price": 7000,
    "phone": "+380501112233",
    "createdById": "1",
    "createdByName": "Admin",
    "modifiedById": null,
    "modifiedByName": null,
    "assignedUserId": "1",
    "assignedUserName": "Admin",
    "teamsIds": [],
    "teamsNames": {}
}

Add a new auto

Request

Response example

{
    "id": "5994666c00c5e4fa9",
    "name": "BMW 530 individual",
    "deleted": false,
    "description": "BMW 530 individual, Авто в хорошому стані.",
    "createdAt": "2017-08-16 15:36:12",
    "modifiedAt": "2017-08-16 15:36:12",
    "transportType": "Легкові",
    "run": 280000,
    "fuelConsumption": 6,
    "volume": 3,
    "fuel": "Газ/Бензин",
    "transmission": "Автомат",
    "driveType": "Задній",
    "city": "Хуст",
    "color": "Сірий металік",
    "abs": true,
    "centralLock": true,
    "airbag": true,
    "alarms": true,
    "price": 6900,
    "phone": "+380503332211",
    "createdById": "5992bee53f646d593"
}

Update some realty

Request

Response example

{
    "id": "5994666c00c5e4fa9",
    "name": "BMW 530 individual",
    "deleted": false,
    "description": "BMW 530 individual, Авто в хорошому стані.",
    "createdAt": "2017-08-16 15:36:12",
    "modifiedAt": "2017-08-16 15:40:45",
    "transportType": "Легкові",
    "run": 280000,
    "fuelConsumption": 6,
    "volume": 3,
    "fuel": "Газ/Бензин",
    "transmission": "Автомат",
    "driveType": "Задній",
    "city": "Хуст",
    "color": "Сірий металік",
    "abs": false,
    "centralLock": true,
    "airbag": true,
    "alarms": true,
    "price": 6900,
    "phone": "+380503332211",
    "createdById": "5992bee53f646d593",
    "createdByName": "test user",
    "modifiedById": "5992bee53f646d593",
    "modifiedByName": "test user",
    "assignedUserId": null,
    "assignedUserName": null
}

Delete some auto

Request

Response example

true