1.0
- http
- application/json
- application/json
Method | URI | Name | Summary |
---|---|---|---|
POST | /api/v1/auth/login | login | Принимает данные пользователя для входа в систему |
POST | /api/v1/auth/register | register | Принимает данные пользователя |
Method | URI | Name | Summary |
---|---|---|---|
POST | /api/v1/face_model/save_features | save csv | Принимает csv файл с фичами из видео |
POST /api/v1/auth/login
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
user_credentials | body |
LoginBody | LoginBody |
✓ | Данные для логина |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
200 | OK | OK | schema | |
400 | Bad Request | Bad Request | schema |
Status: OK
Status: Bad Request
LoginBadRequestBody
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
code | integer | int64 |
✓ | Код ошибки | 26002 |
|
message | string | string |
✓ | Сообщение ошибки | entity not found |
|
name | string | string |
✓ | Наименование ошибки | NotFound |
|
status | integer | int64 |
✓ | Статус код ответа | 404 |
LoginBody
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
login | string | string |
✓ | |||
password | string | string |
✓ |
LoginOKBody
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
get_face_model_url | string | string |
||||
upload_face_model_features_url | string | string |
POST /api/v1/auth/register
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
user_data | body |
RegisterBody | RegisterBody |
✓ | Данные для регистрации |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
204 | No Content | No Content | schema | |
400 | Bad Request | Bad Request | schema |
Status: No Content
Status: Bad Request
RegisterBadRequestBody
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
code | integer | int64 |
✓ | Код ошибки | 26002 |
|
message | string | string |
✓ | Сообщение ошибки | entity not found |
|
name | string | string |
✓ | Наименование ошибки | NotFound |
|
status | integer | int64 |
✓ | Статус код ответа | 404 |
RegisterBody
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
login | string | string |
✓ | |||
name | string | string |
||||
password | string | string |
✓ | |||
surname | string | string |
POST /api/v1/face_model/save_features
Name | Source | Type | Go type | Separator | Required | Default | Description |
---|---|---|---|---|---|---|---|
file | formData |
file | io.ReadCloser |
✓ | Загружаемый csv |
Code | Status | Description | Has headers | Schema |
---|---|---|---|---|
204 | No Content | No Content | schema | |
400 | Bad Request | Bad Request | schema |
Status: No Content
Status: Bad Request
SaveCsvBadRequestBody
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
code | integer | int64 |
✓ | Код ошибки | 26002 |
|
message | string | string |
✓ | Сообщение ошибки | entity not found |
|
name | string | string |
✓ | Наименование ошибки | NotFound |
|
status | integer | int64 |
✓ | Статус код ответа | 404 |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
code | integer | int64 |
✓ | Код ошибки | 26002 |
|
message | string | string |
✓ | Сообщение ошибки | entity not found |
|
name | string | string |
✓ | Наименование ошибки | NotFound |
|
status | integer | int64 |
✓ | Статус код ответа | 404 |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
login | string | string |
✓ | |||
password | string | string |
✓ |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
get_face_model_url | string | string |
||||
upload_face_model_features_url | string | string |
Properties
Name | Type | Go type | Required | Default | Description | Example |
---|---|---|---|---|---|---|
login | string | string |
✓ | |||
name | string | string |
||||
password | string | string |
✓ | |||
surname | string | string |