Получение наставников
Получение наставников#
Описание#
Ручка необходима для списка наставников
Название сервиса#
terra_mentor_service
Получение списка наставников
Ручка
POST admin/mentor/v1/fetch_mentor_event
Доступно в сети по адресу:
Дев: http://gateway.devterra.ru/admin/mentor/v1/fetch_mentor_event
Прод: https://mobile-api.terraprod.ru/admin/mentor/v1/fetch_mentor_event
Запрос#
Параметры запроса
| Столбец | Тип | Описание | Обязательность | Пример |
|---|---|---|---|---|
| category_id | []int | Уровень прибыли наставника | ❌ | [1,2] |
| eventType | []int | Формат наставника | ❌ | [1,2] |
| mentorFlow | int | Запуск | ✅ | 1 |
| mentorUUID | string | UUID наставника | ❌ | ec39634c-536d-4637-958f-9e2fb99f5484 |
| searchName | string | ФИО наставника | ❌ | Любое Блин |
| competences | []string | Список компетенций | ❌ | ["ec39634c-536d-4637-958f-9e2fb99f5484"] |
| employments | []string | Список ниш | ❌ | ["ec39634c-536d-4637-958f-9e2fb99f5484"] |
Поле mentorFlow обязательно
{
"filters": {
"categoryID": [
1,
2
],
"eventType": [
1,
2,
3
],
"mentorFlow": 12,
"mentorUUID": "0c0356fa-921a-42c2-bf8e-17eeeae63067",
"searchName": "Барбус Нагуслаев Без отчества",
"competences": [
"ec39634c-536d-4637-958f-9e2fb99f5484"
],
"employments": [
"ec39634c-536d-4637-958f-9e2fb99f5484"
]
},
"pagination": {
"limit": 100,
"page": 1
}
}
Ответ#
{
"pagination": {
"currentPage": 0,
"itemsPerPage": 0,
"totalItems": 0,
"totalPages": 0
},
"result": [
{
"categoryID": 0,
"categoryName": "string",
"date": {
"dateFrom": "2024-11-05T18:30:00+03:00",
"dateTo": "2024-11-05T18:30:00+03:00"
},
"entityID": 0,
"eventActive": true,
"eventID": 0,
"eventMaxStudents": 0,
"eventMessage": {
"message": "string"
},
"eventName": "string",
"eventType": 0,
"eventTypeName": "string",
"location": {
"addressName": "string",
"cityID": 0,
"countryID": 0,
"description": "string",
"districtID": 0,
"latitude": "55.756817",
"longitude": "55.756817"
},
"mentorFlow": 0,
"mentorFlowName": "string",
"mentorUUID": "string",
"properties": {
"URL": "string",
"chat": "string",
"description": "string",
"other": "string",
"videoCard": "string"
},
"registrationCount": 0,
"mentorInfo": { // инфо о наставнике
"aboutMe": "string",
"background": {
"competence": "string",
"employment": "string"
},
"bans": "string",
"birthday": "02.01.2006",
"contactInfo": [
{
"contact": "string",
"contactName": "string",
"contactType": 0,
"isVerified": true
}
],
"createdAt": "2024-11-05T18:30:00+03:00",
"enableNotification": true,
"firstName": "string",
"isBanned": true,
"lastName": "string",
"location": {
"addressName": "string",
"cityID": 0,
"cityName": "string",
"countryID": 0,
"countryName": "string",
"districtID": 0,
"districtName": "string"
},
"middleName": "string",
"photo": {
"coord": {
"height": 0,
"width": 0,
"x": 0,
"y": 0
},
"photoBase64": "string"
},
"updatedAt": "2024-11-05T18:30:00+03:00",
"useTOTP": true,
"userEventID": 0,
"userEventName": "string",
"userID": "string",
"userRoles": [
{
"info": {
"mentor_level": 0,
"salary": 0
},
"permission": 0,
"role": "string"
}
],
"worksheet": [
{
"aboutMe": "string",
"competencies": [
{
"description": "string",
"name": "string",
"uuid": "string"
}
],
"contacts": [
{
"contact": "string",
"contactType": 0
}
],
"employments": [
{
"description": "string",
"name": "string",
"uuid": "string"
}
],
"firstName": "string",
"goalsForYear": "string",
"keyAchievements": "string",
"lastName": "string",
"location": {
"cityID": 0,
"countryID": 0,
"districtID": 0
},
"mentorCategory": 0,
"mentorYearsCount": {
"description": "string",
"yearsCount": 0
},
"middleName": "string",
"photo": {
"coord": {
"height": 0,
"width": 0,
"x": 0,
"y": 0
},
"url": "string"
},
"roleID": 0,
"salaryLevel": {
"id": 0,
"name": "string",
"rawName": "string"
},
"staffCount": {
"id": 0,
"name": "string",
"rawName": "string"
},
"turnoverLevel": {
"id": 0,
"name": "string",
"rawName": "string"
},
"userUUID": "string",
"uuid": "string",
"videoCard": "string",
"yearsOnBusiness": {
"id": 0,
"name": "string",
"rawName": "string"
}
}
]
}
}
]
}
Получение одного наставника по его id прикрепления
Ручка
GET admin/mentor/v1/get_mentor_event/{mentor_event_id}
Доступно в сети по адресу:
Дев: http://gateway.devterra.ru/admin/mentor/v1/get_mentor_event/11
Прод: https://mobile-api.terraprod.ru/admin/mentor/v1/get_mentor_event/11
{
"categoryID": 0,
"categoryName": "string",
"date": {
"dateFrom": "2024-11-05T18:30:00+03:00",
"dateTo": "2024-11-05T18:30:00+03:00"
},
"entityID": 0,
"eventActive": true,
"eventID": 0,
"eventMaxStudents": 0,
"eventMessage": {
"message": "string"
},
"eventName": "string",
"eventType": 0,
"eventTypeName": "string",
"location": {
"addressName": "string",
"cityID": 0,
"countryID": 0,
"description": "string",
"districtID": 0,
"latitude": "55.756817",
"longitude": "55.756817"
},
"mentorFlow": 0,
"mentorFlowName": "string",
"mentorUUID": "string",
"properties": {
"URL": "string",
"chat": "string",
"description": "string",
"other": "string",
"videoCard": "string"
},
"registrationCount": 0,
"mentorInfo": { // инфо о наставнике
"aboutMe": "string",
"background": {
"competence": "string",
"employment": "string"
},
"bans": "string",
"birthday": "02.01.2006",
"contactInfo": [
{
"contact": "string",
"contactName": "string",
"contactType": 0,
"isVerified": true
}
],
"createdAt": "2024-11-05T18:30:00+03:00",
"enableNotification": true,
"firstName": "string",
"isBanned": true,
"lastName": "string",
"location": {
"addressName": "string",
"cityID": 0,
"cityName": "string",
"countryID": 0,
"countryName": "string",
"districtID": 0,
"districtName": "string"
},
"middleName": "string",
"photo": {
"coord": {
"height": 0,
"width": 0,
"x": 0,
"y": 0
},
"photoBase64": "string"
},
"updatedAt": "2024-11-05T18:30:00+03:00",
"useTOTP": true,
"userEventID": 0,
"userEventName": "string",
"userID": "string",
"userRoles": [
{
"info": {
"mentor_level": 0,
"salary": 0
},
"permission": 0,
"role": "string"
}
],
"worksheet": [
{
"aboutMe": "string",
"competencies": [
{
"description": "string",
"name": "string",
"uuid": "string"
}
],
"contacts": [
{
"contact": "string",
"contactType": 0
}
],
"employments": [
{
"description": "string",
"name": "string",
"uuid": "string"
}
],
"firstName": "string",
"goalsForYear": "string",
"keyAchievements": "string",
"lastName": "string",
"location": {
"cityID": 0,
"countryID": 0,
"districtID": 0
},
"mentorCategory": 0,
"mentorYearsCount": {
"description": "string",
"yearsCount": 0
},
"middleName": "string",
"photo": {
"coord": {
"height": 0,
"width": 0,
"x": 0,
"y": 0
},
"url": "string"
},
"roleID": 0,
"salaryLevel": {
"id": 0,
"name": "string",
"rawName": "string"
},
"staffCount": {
"id": 0,
"name": "string",
"rawName": "string"
},
"turnoverLevel": {
"id": 0,
"name": "string",
"rawName": "string"
},
"userUUID": "string",
"uuid": "string",
"videoCard": "string",
"yearsOnBusiness": {
"id": 0,
"name": "string",
"rawName": "string"
}
}
]
}
}