POST api/DoctorCourse/AddCourse
Добавить курс, требуется авторизация
Request Information
URI Parameters
None.
Body Parameters
курс
CourseData| Name | 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 |
| photo_rid |
Фото |
integer |
Required |
| photo_rid_kz |
Фото кз |
integer |
None. |
| tutorial_type_rid |
Фото |
integer |
Required |
| sign_rid |
Признаки |
Collection of 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,
"photo_rid": 1,
"photo_rid_kz": 1,
"tutorial_type_rid": 1,
"sign_rid": [
1,
2
]
}
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,"photo_rid":1,"photo_rid_kz":1,"tutorial_type_rid":1,"sign_rid":[1,2]}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseModelAdd| Name | 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}