POST api/DoctorCourse/AddTutorial
Добавить туториал, требуется авторизация
Request Information
URI Parameters
None.
Body Parameters
туториал
TutorialDataName | Description | Type | Additional information |
---|---|---|---|
record_id |
Идентификатор |
integer |
None. |
title |
Заголовок |
string |
Required String length: inclusive between 0 and 200 |
title_kz |
Заголовок кз |
string |
String length: inclusive between 0 and 200 |
description |
Описание |
string |
Required |
description_kz |
Описание кз |
string |
None. |
price |
Цена |
integer |
Required |
video_rid |
Видео |
integer |
Required |
video_kz_rid |
Видео кз |
integer |
None. |
order_number |
Порядок |
integer |
None. |
course_rid |
Курс |
Collection of integer |
None. |
horizontal |
Порядок |
boolean |
None. |
sign_rid |
Признаки |
Collection of integer |
None. |
photo_rid |
Фото |
integer |
None. |
photo_kz_rid |
Фото кз |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "record_id": 1, "title": "sample string 2", "title_kz": "sample string 3", "description": "sample string 4", "description_kz": "sample string 5", "price": 1, "video_rid": 1, "video_kz_rid": 1, "order_number": 6, "course_rid": [ 1, 2 ], "horizontal": true, "sign_rid": [ 1, 2 ], "photo_rid": 1, "photo_kz_rid": 1 }
text/html
Sample:
{"record_id":1,"title":"sample string 2","title_kz":"sample string 3","description":"sample string 4","description_kz":"sample string 5","price":1,"video_rid":1,"video_kz_rid":1,"order_number":6,"course_rid":[1,2],"horizontal":true,"sign_rid":[1,2],"photo_rid":1,"photo_kz_rid":1}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseModelAddName | Description | Type | Additional information |
---|---|---|---|
record_id |
Идентификатор |
integer |
None. |
success |
Успешность запроса true, false |
boolean |
None. |
Errors |
Ошибка запроса |
Collection of string |
None. |
result |
Объект |
Object |
None. |
new_level |
Новый уровень |
integer |
None. |
add_bonus |
Добавленный бонус |
decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{ "record_id": 1, "success": true, "Errors": [ "sample string 1", "sample string 2" ], "result": {}, "new_level": 1, "add_bonus": 1.0 }
text/html
Sample:
{"record_id":1,"success":true,"Errors":["sample string 1","sample string 2"],"result":{},"new_level":1,"add_bonus":1.0}