Sunglasses price list

get list

request
GET /api/v2/sunglasses/prices/list?size=10&page=0&sortColumn=ID&brand=%D0%97%D0%B0%D1%89%D0%B8%D1%82%D0%BD%D1%8B%D0%B9%20%D0%B1%D1%80%D0%B5%D0%BD%D0%B4&model=%D0%9B%D0%B5%D0%BD%D0%BD%D0%BE%D0%BD&purchaseFrom=3000&purchaseTo=4000&priceFrom=3000&priceTo=4000&manufacturer=%D0%A1%D0%BE%D0%BB%D0%BD%D0%B5%D1%87%D0%BD%D1%8B%D0%B9%20%D0%BF%D1%80%D0%BE%D0%B8%D0%B7%D0%B2%D0%BE%D0%B4%D0%B8%D1%82%D0%B5%D0%BB%D1%8C HTTP/1.1
Table 898. request description
Parameter Description

model

Модель

brand

Бренд

manufacturer

Производитель

priceFrom

Цена от

priceTo

Цена до

purchaseFrom

Закупочная цена от

purchaseTo

Закупочная цена до

pageable

Pageable description

sortColumn

Колонка сортировки, значения: ID, PARAMETERS, PRICE, PURCHASE

response
HTTP/1.1 200 OK

{
  "content" : [ {
    "id" : 9000000099,
    "manufacturer" : "Солнечный производитель",
    "brand" : "Защитный бренд",
    "model" : "Леннон",
    "lastUpdatedOn" : "2024-10-30",
    "price" : 4000.0,
    "purchase" : 3000.0,
    "user" : "Новый Доктор"
  } ],
  "pageable" : {
    "pageNumber" : 0,
    "pageSize" : 10,
    "sort" : {
      "empty" : false,
      "sorted" : true,
      "unsorted" : false
    },
    "offset" : 0,
    "paged" : true,
    "unpaged" : false
  },
  "last" : true,
  "totalElements" : 1,
  "totalPages" : 1,
  "first" : true,
  "size" : 10,
  "number" : 0,
  "sort" : {
    "empty" : false,
    "sorted" : true,
    "unsorted" : false
  },
  "numberOfElements" : 1,
  "empty" : false
}
Table 899. response description
Path Type Description

content[].

Array

Массив прейскурантов на солнечные очки

[].id

Number

id

[].model

String

Модель

[].brand

String

Бренд

[].manufacturer

String

Производитель

[].price

Number

Цена

[].lastUpdatedOn

String

Дата последнего обновления

[].user

String

Пользователь

[].purchase

Number

Закупочная цена

create

request
POST /api/v2/sunglasses/prices HTTP/1.1

{
  "manufacturer" : "Солнечный производитель",
  "brand" : "Диор",
  "model" : "Оверсайз",
  "price" : 555.0,
  "purchase" : 444.0
}
Table 900. request description
Path Type Description Constraints

model

String

Модель

Size must be between 0 and 50 inclusive

brand

String

Бренд

Size must be between 0 and 50 inclusive

manufacturer

String

Производитель

Size must be between 0 and 50 inclusive

price

Number

Цена

Must be at least 0.
Must have at most 14 integral digits and 2 fractional digits.
Must not be null

purchase

Number

Закупочная цена

Must be at least 0.
Must have at most 14 integral digits and 2 fractional digits

response
HTTP/1.1 200 OK

{
  "id" : 1000005005,
  "manufacturer" : "Солнечный производитель",
  "brand" : "Диор",
  "model" : "Оверсайз",
  "price" : 555.0,
  "purchase" : 444.0
}
Table 901. response description
Path Type Description

id

Number

id

model

String

Модель

brand

String

Бренд

manufacturer

String

Производитель

price

Number

Цена

purchase

Number

Закупочная цена

get info

request
GET /api/v2/sunglasses/prices/9000000098 HTTP/1.1
Table 902. /api/v2/sunglasses/prices/{sunglassesPriceId}
Parameter Description

sunglassesPriceId

id прейскуранта

response
HTTP/1.1 200 OK

{
  "id" : 9000000098,
  "manufacturer" : "Солнечный производитель",
  "brand" : "Защитный бренд",
  "model" : "Оверсайз",
  "price" : 3545.0,
  "purchase" : 2500.0
}
Table 903. response description
Path Type Description

id

Number

id

model

String

Модель

brand

String

Бренд

manufacturer

String

Производитель

price

Number

Цена

purchase

Number

Закупочная цена

update

request
PUT /api/v2/sunglasses/prices/9000000098 HTTP/1.1

{
  "manufacturer" : "Солнечный производитель",
  "brand" : "Защитный бренд",
  "model" : "Оверсайз",
  "price" : 3545.0,
  "purchase" : 2500.0
}
Table 904. /api/v2/sunglasses/prices/{sunglassesPriceId}
Parameter Description

sunglassesPriceId

id прейскуранта

Path Type Description Constraints

model

String

Модель

Size must be between 0 and 50 inclusive

brand

String

Бренд

Size must be between 0 and 50 inclusive

manufacturer

String

Производитель

Size must be between 0 and 50 inclusive

price

Number

Цена

Must be at least 0.
Must have at most 14 integral digits and 2 fractional digits.
Must not be null

purchase

Number

Закупочная цена

Must be at least 0.
Must have at most 14 integral digits and 2 fractional digits

response
HTTP/1.1 200 OK

{
  "id" : 9000000098,
  "manufacturer" : "Солнечный производитель",
  "brand" : "Защитный бренд",
  "model" : "Оверсайз",
  "price" : 3545.0,
  "purchase" : 2500.0
}
Table 905. response description
Path Type Description

id

Number

id

model

String

Модель

brand

String

Бренд

manufacturer

String

Производитель

price

Number

Цена

purchase

Number

Закупочная цена

delete

request
DELETE /api/v2/sunglasses/prices/9000000097 HTTP/1.1
Table 906. /api/v2/sunglasses/prices/{sunglassesPriceId}
Parameter Description

sunglassesPriceId

id прейскуранта

response
HTTP/1.1 200 OK

sunglasses change price

request
POST /api/v2/sunglasses/prices/list?manufacturer=%D0%A1%D0%BE%D0%BB%D0%BD%D0%B5%D1%87%D0%BD%D1%8B%D0%B9%20%D0%BF%D1%80%D0%BE%D0%B8%D0%B7%D0%B2%D0%BE%D0%B4%D0%B8%D1%82%D0%B5%D0%BB%D1%8C&brand=P%26P&brand=%D0%97%D0%B0%D1%89%D0%B8%D1%82%D0%BD%D1%8B%D0%B9%20%D0%B1%D1%80%D0%B5%D0%BD%D0%B4&model=%D0%9B%D0%B5%D0%BD%D0%BD%D0%BE%D0%BD&purchaseFrom=1000&purchaseTo=5000&priceFrom=1000&priceTo=5000 HTTP/1.1

{
  "priceFrom" : 1000.0,
  "priceTo" : 500.0,
  "coefficient" : null,
  "difference" : 500.0,
  "round" : "TO_INT",
  "priceTypeBase" : "PURCHASE",
  "priceTypeChange" : "RETAIL"
}
Table 907. request description
Parameter Description

model

Модель

brand

Бренд

manufacturer

Производитель

priceFrom

Цена от

priceTo

Цена до

purchaseFrom

Закупочная цена от

purchaseTo

Закупочная цена до

Path Type Description Constraints

priceFrom

Number

Цена от

priceTo

Number

Цена до

priceTypeChange

String

Изменяемая цена, значения: PURCHASE, RETAIL

priceTypeBase

String

Базовая цена, значения: PURCHASE, RETAIL

coefficient

Number

Коэффициент

difference

Number

Разница в руб.

round

String

Округление, значения: WHOLE (до целого), TENS (до десятков), HUNDREDS (до сотен)

Must not be null

response
HTTP/1.1 200 OK