El-shopo

Модели
Магазин
Создание магазина
Object
name
string

Название магазина

description
string

Описание магазина

avatar
unknown

Фаил автара

label
unknown

Фаил обложки

city[]
string

Массив городов (id)

Магазин товара
Object
id
string

идентификатор

rating
string

Рейтинг магазина

ordersCount
string

кол-во заказов

avatar
string

ссылка на автар

name
string

Название магазина

Карточка магазина
Object
logo
string

Логотип (аватар) магазина

name
string

Название магазина

description
string

Описание магазина

city
string

Город

cityCount
number

кол-во городов

productsCount
string

кол-во товаров

rating
number

рейтинг

ordersCount
number

кол-во заказов

favorite
boolean

в избраном

Товары
Товар в слайдерах
Object
id
string

идентификатор

mainImage
string

Изображение для обложки

title
string

Название

cost
string

Стоимость (рубли)

rating
number

Рейтинг товаров

ordersCount
string

Кол-во заказов

Магазин

city
string

город

favorite
boolean

В избранном.

массив позиций товара

Позиция товра
Object
id
string

Идентификатор

state
string

Состояние perfect || good || normal || bad

description
string

Описание

location
string

адрес

priceRub
string

Стоимость рубли

priceBtc
string

стоимость биткоины

preorder
boolean

Флаг доступности только для предзаказа

Каталог
Категории в шапке
Object
id
string

Идентификатор

title
string

Название корневой категории

children
Array

Дочерние категории

Object
id
string

Идентификатор дочерней категории

title
string

Название дочерней категории

Категории на странице
Object
id
string

идентификатор

title
string

Заголовок

current
string

Флаг текущей категории

Дочерине категории (не более 3- уровней вложености)

Чат
Элемент чата
Object
id
string
Example:
1
avatar
string
Example:
base64
title
string
Example:
Solarius
newMessageCount
string
Example:
3
hashFile
boolean
Example:
true
lastMessage
Object
text
string
Example:
Понятно
isMy
boolean
Example:
true
date
string
Example:
19 марта
Элемент сообщения
Object
text
string
Example:
Да все ок, спасибо! Хорошо сработали)
isMy
boolean
Example:
true
date
string
Example:
1 мая 23:49
images
Array of string
Example:
base64
Пользователь
Object
authorized
boolean

Признак авторизованости пользователя

location
Object
city
Object
id
string
title
string
country
Object
id
string
title
string
district
Object
id
string
title
string
shop
Object
logo
string
name
string
notificationCount
integer
balance
number
username
string
Example:
NikNameSSSS
login
string
Example:
login123
dateReg
string
Example:
23.01.2022 в 12:03
avatar
string
notifications
boolean
Списочные данные
Object
id
string

Идентификатор

title
string

Заголовок

Массив стран
Array
Object
id
string
title
string
Адрес
Object
name
string
city
string
district
string
type
string
description
string
images
string
Страницы модель api-container
Главная (index.html)
Object

Информация о пользователе

Навигация в шапке

pageData
Object

Данные для страницы

banners
Array

массив банеров

Object
image
string

изображение банера

link
string

ссылка

viewProducts

Просмотренные товары

popularProducts

Популярные товары

favoriteShops

Избраные магазины

popularShops

Популярные товары

Создание магазина (new-shop.html)
Object

Информация о пользователе

Навигация в шапке

pageData
Object

Данные для страницы

Массив городов доступных для открытия магазина

Настройки магазина (shop-settings.html)
Object

Информация о пользователе

Навигация в шапке

pageData
Object

Данные для страницы

id
string
Example:
1
name
string
Example:
REstore
logo
string
Example:
base64
description
string
Example:
Описание
promo
string
Example:
Описание
cities
Array of string
Example:
 ["Санкт-Петербург", "Москва", "Казань"]
country
string
Example:
Россия
createDate
string
Example:
23.01.2022 в 12:03
tariff
string
Example:
STANDART
ordersCount
string
Example:
22
tariffSettings
Object
title
string
Example:
STANDART
conditions
string
Example:
Ежемесячная плата: 150$ в месяц
nextWriteOff
string
Example:
26 июля
notifications
boolean
Example:
true
pinCode
string
Example:
123123
pinCodeActive
boolean
Example:
false
pgp
string
Example:
213123v12312
pgpActive
boolean
Example:
false
googleAuthenticator
boolean
Example:
false
Создание адреса (new-address.html)
Object

Информация о пользователе

Навигация в шапке

pageData
Object

Данные для страницы

Изменение адреса (new-address.html)
Object

Информация о пользователе

Навигация в шапке

pageData
Object

Данные для страницы

currentAddress
Object
id
string
name
string
city
string
district
string
type
string
description
string
images
Array
Object
id
string
image
string
Список адресов (shop-addresses.html)

Для фильтрации на странице используются праметры city query type page

Object

Информация о пользователе

Навигация в шапке

pageData
Object

Данные для страницы

shop
Object
id
string
name
string
logo
string
tariff
string
ordersCount
string
addresses
string
count
string
totalPages
string
list
Array
Object
id
string
Example:
1
image
string
Example:
base64
name
string
Example:
Новый
city
string
Example:
Москвва
district
string
Example:
Красная площадь
type
string
Example:
СТО
description
string
Example:
За гаражами налево
createDate
string
Example:
12.07.2020, 15:02
author
Object
nikName
string
Example:
Lololo2330
id
string
Example:
222
Создание продукта (new-product.html)
Object

Информация о пользователе

Навигация в шапке

pageData
Object

Данные для страницы

Редактирование продукта (new-product.html)
Object

Информация о пользователе

Навигация в шапке

pageData
Object

Данные для страницы

categories
product
Object
id
string
name
string
brand
string
category
string
description
string
images
Array
Object
id
string
image
string
Запрос капчи для авторизации
GET /api/digits

Responses

200 OK
Body
Object
captchaId
string

идентификатор

captcha
string

base64 изображение капчи

Авторизация
POST /api/login

Request body

Object
login
string
password
string
captcha
string
captchaId
string
Регистрация
POST /api/registration

Request body

Object
login
string
password
string
passwordAgain
string
username
string
captcha
string
captchaId
string
Создание магазина
POST /api/new-shop

Request body

multipart/form-data
Object
name
string
promo
string
country
string
cities[]
string
logo
string
label
string
Обновление магазина
POST /api/update-shop

Request body

multipart/form-data
Object
name
string
promo
string
country
string
cities[]
string
logo
string
label
string
id
string
Обновление города
POST /api/change-city

Request body

Object
country
string
city
string
district
string
Получение районов города
GET /api/districts

Request parameters

cityid
string optional

Responses

200 OK
Body
Array
Object
id
string
title
string
cityId
string
Создание нового адреса
POST /api/address

Request body

multipart/form-data
Object
name
string
city
string
district
string
type
string
description
string
images[]
string
Измненение адреса
PATCH /api/address

Request body

multipart/form-data
Object
name
string
city
string
district
string
type
string
description
string
images[]
string
deleted[]
string
Удаление адреса
DELETE /api/address

Request body

Object
id
string
Создание продукта
POST /api/product

Request body

multipart/form-data
Object
name
string
brand
string
category
string
description
string
images[]
string

Responses

200 OK
Body
Object
id
string
Редактирование продукта
PATCH /api/product

Request body

multipart/form-data
Object
name
string
brand
string
category
string
description
string
images[]
string
deleted[]
string
id
string

Responses

200 OK
Body
Object
id
string
Смена пароля
POST /api/change-password

Request body

Object
oldPassword
string
newPassword
string
newPasswordAgain
string
Смена данных пользователя
POST /api/user-settings

Request body

Object
country
string
city
string
district
string
username
string
Смена настроек пользователя
POST /api/user-data

Request body

multipart/form-data
Object
notifications
string
avatar
string
Получение списка чатов
GET /api/chat

Responses

200 OK
Body
Object
user
Object
name
string

nikName

newMessageCount
string
Example:
33
chats
shop
Object
name
string
newMessageCount
string
chats
avatar
string
Получение списка сообщений чата
GET /api/message

Request parameters

id
string optional

id чата

Responses

200 OK
Отправка сообщений в чат
POST /message

Request body

multipart/form-data
Object
images[]
string

Массив картинок

text
string