Trends (v1)

Download OpenAPI specification:Download

Authentication

bearer

Security Scheme Type HTTP
HTTP Authorization Scheme bearer

trends

Обновить идексы цен (xlsx или json)

put /management/rates/update
https://trends.dev1.traffic.online/api/{version}/management/rates/update
https://trends.tradeplace-dev2.bia-tech.ru/api/{version}/management/rates/update
https://trends.getcargo.ru/api/{version}/management/rates/update

Обновить идексы цен (xlsx или json)

Authorizations:
Request Body schema:
Array
predicate
Array of objects (Filter)
trend
Array of objects (Rate)

Responses

200

бинарное представление файла

400

Неверные параметры запроса

Request samples

Content type
Copy
Expand all Collapse all
[
  • {
    }
]

Response samples

Content type
application/json
Copy
Expand all Collapse all
[
  • {
    }
]

Получить список фильтров

get /filters
https://trends.dev1.traffic.online/api/{version}/filters
https://trends.tradeplace-dev2.bia-tech.ru/api/{version}/filters
https://trends.getcargo.ru/api/{version}/filters

Получить список фильтров

query Parameters
transport
string

Тип ТС

body
string

Тип кузова

scope
string

Тип направления

loading_city
string

Субъект погрузки

unloading_city
string

Субъект разгрузки

loading_district
string

ФО погрузки

unloading_district
string

ФО выгрузки

direction
string

Макронаправление

Responses

200

ОК

400

Неверные параметры запроса

Response samples

Content type
application/json
Copy
Expand all Collapse all
[
  • {
    }
]

Получить индексы цен

get /trends
https://trends.dev1.traffic.online/api/{version}/trends
https://trends.tradeplace-dev2.bia-tech.ru/api/{version}/trends
https://trends.getcargo.ru/api/{version}/trends

Получить индексы цен

Authorizations:
query Parameters
transport
string

Тип ТС

body
string

Тип кузова

scope
string

Тип направления

loading_city
string

Субъект погрузки

unloading_city
string

Субъект разгрузки

loading_district
string

ФО погрузки

unloading_district
string

ФО выгрузки

direction
string

Макронаправление

start
string <date-time>

Индексы цен с указанной даты

end
string <date-time>

Индексы цен до указанной даты

Responses

200

ОК

400

Неверные параметры запроса

Response samples

Content type
application/json
Copy
Expand all Collapse all
[
  • {
    }
]

register

Зарегистрироваться

post /register
https://trends.dev1.traffic.online/api/{version}/register
https://trends.tradeplace-dev2.bia-tech.ru/api/{version}/register
https://trends.getcargo.ru/api/{version}/register

Зарегистрироваться

Request Body schema: application/json
name
string
INN
string
email
string
phone
string
company
string

Responses

200

ОК

400

Неверные параметры запроса

Request samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "name": "string",
  • "INN": "string",
  • "email": "string",
  • "phone": "string",
  • "company": "string"
}

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "token": "string"
}

counters

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

get /counters
https://trends.dev1.traffic.online/api/{version}/counters
https://trends.tradeplace-dev2.bia-tech.ru/api/{version}/counters
https://trends.getcargo.ru/api/{version}/counters

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

query Parameters
start
string

Начиная с этой даты. Если отсутствует, то выборка начинается с минимальной даты в БД

end
string

Заканчивая этой датой. Если отсутствует, то выборка начинается с максимальной даты в БД

Responses

200

ОК

400

Неверные параметры запроса

Response samples

Content type
application/json
Copy
Expand all Collapse all
{
  • "total_count": null,
  • "counters_by_day":
    [
    ]
}