Получить список событий
Ручка
POST/event/v1/fetch_events
Полный адрес в сети
| Среда |
URL |
| 🧪 Dev |
https://gateway.devterra.ru/admin/event/v1/fetch_events |
| 🚀 Prod |
https://mobile-api.terraprod.ru/admin/event/v1/fetch_events |
Тело запроса
| Поле |
Тип |
Описание |
Обязательное |
Пример |
| filter.categoryID |
[]int32 |
Список ID категорий |
❌ |
[0] |
| filter.cityID |
[]int32 |
Список ID городов |
❌ |
[0] |
| filter.countryID |
[]int32 |
Список ID стран |
❌ |
[0] |
| filter.dateFrom |
string |
Начальная дата для фильтрации |
❌ |
"2024-11-05T18:30:00+03:00" |
| filter.dateTo |
string |
Конечная дата для фильтрации |
❌ |
"2024-11-05T18:30:00+03:00" |
| filter.districtID |
[]int32 |
Список ID районов |
❌ |
[0] |
| filter.flowID |
int32 |
ID потока (например, школьного) |
❌ |
1 |
| filter.mentorEventID |
int32 |
ID менторского мероприятия |
❌ |
1 |
| filter.orderByDateFromDesc |
bool |
Сортировать по дате начала по убыванию |
❌ |
true |
| filter.search |
string |
Поисковая строка (по названию и описанию) |
❌ |
"string" |
| filter.typeID |
[]int32 |
Список ID типов событий |
❌ |
[0] |
| filter.schoolFlowUUID |
string |
UUID запуска школы |
❌ |
"7996d2f3-5eb5-44a3-b39e-7d5cd0cd4a58" |
| pagination.limit |
int32 |
Кол-во элементов на странице |
✅ |
1 |
| pagination.page |
int32 |
Номер страницы |
✅ |
1 |
Пример JSON запроса
{
"filter": {
"categoryID": [
0
],
"cityID": [
0
],
"countryID": [
0
],
"dateFrom": "2024-11-05T18:30:00+03:00",
"dateTo": "2024-11-05T18:30:00+03:00",
"districtID": [
0
],
"flowID": 1,
"mentorEventID": 1,
"orderByDateFromDesc": true,
"search": "string",
"typeID": [
0
],
"schoolFlowUUID": null
},
"pagination": {
"limit": 1,
"page": 1
}
}
Пример JSON ответа
{
"pagination": {
"currentPage": 1,
"itemsPerPage": 1,
"totalItems": 1,
"totalPages": 1
},
"result": [
{
"ID": 1,
"canFreeRegister": true,
"categoryID": 1,
"comingCount": {
"all": 1,
"mentors": 1,
"students": 1,
"volunteers": 1
},
"createdAt": "2024-11-05T18:30:00+03:00",
"date": {
"dateFrom": "2024-11-05T18:30:00+03:00",
"dateTo": "2024-11-05T18:30:00+03:00",
"duration": 0
},
"eventProgramm": {
"programs": [
{
"description": "string",
"startTime": "2024-11-05T18:30:00+03:00",
"title": "string"
}
]
},
"eventQuestion": {
"questions": [
{
"answer": "string",
"question": "string"
}
]
},
"flowID": 1,
"limits": {
"all": 1,
"mentors": 1,
"students": 1,
"volunteers": 1
},
"location": {
"addressName": "Москва, улица Пушкина, дом Колотушкина",
"cityID": 1,
"countryID": 1,
"description": "Дверь номер 666",
"districtID": 1,
"latitude": "55.756817",
"longitude": "37.530103"
},
"mentorEventID": 1,
"mentorLevels": [
0
],
"name": "string",
"placeScheme": {
"scheme": [
"string"
]
},
"properties": {
"URLButton": {
"URL": "string",
"description": "string",
"header": "string",
"name": "string"
},
"chat": "string",
"other": "string",
"speakers": [
"string"
],
"url": "string"
},
"redirectLink": {
"redirectLink": "https://google.com",
"redirectLinkAutoText": "null",
"redirectLinkButtonText": "null",
"redirectLinkDescription": "null",
"redirectLinkName": "Some name"
},
"registeredCount": {
"all": 1,
"mentors": 1,
"students": 1,
"volunteers": 1
},
"typeID": 1,
"userUUID": "7996d2f3-5eb5-44a3-b39e-7d5cd0cd4a58",
"schoolFlowUUID": "091383eb-9786-4164-8ac6-5fbfde22297f",
"canRegisterWithoutSchool": false
}
]
}