POST api/classcourse/save
保存班课
Request Information
URI Parameters
None.
Body Parameters
班课实体
ClassCourseSaveDtoName | Description | Type | Additional information |
---|---|---|---|
Id |
编号 |
globally unique identifier |
None. |
UserID |
用户编号 |
string |
None. |
ClassCourseName |
班课名称 |
string |
None. |
Cover |
封面 |
string |
None. |
Introduction |
班课简介 |
string |
None. |
TeachingClassId |
教学班级编号 |
globally unique identifier |
None. |
TeachingClassName |
教学班级名称 |
string |
None. |
TeachingClassPId |
课程专业ID |
integer |
None. |
Semester |
学期 |
Semester |
None. |
Grade |
年级 |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": "fd3761a0-f76c-4e0a-97d5-726b07a25f8b", "UserID": "sample string 2", "ClassCourseName": "sample string 3", "Cover": "sample string 4", "Introduction": "sample string 5", "TeachingClassId": "aefc8406-dccc-4bea-be87-385aaf9ba79f", "TeachingClassName": "sample string 7", "TeachingClassPId": 1, "Semester": 1, "Grade": 8 }
text/html
Sample:
{"Id":"fd3761a0-f76c-4e0a-97d5-726b07a25f8b","UserID":"sample string 2","ClassCourseName":"sample string 3","Cover":"sample string 4","Introduction":"sample string 5","TeachingClassId":"aefc8406-dccc-4bea-be87-385aaf9ba79f","TeachingClassName":"sample string 7","TeachingClassPId":1,"Semester":1,"Grade":8}
application/xml, text/xml
Sample:
<ClassCourseSaveDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <ClassCourseName>sample string 3</ClassCourseName> <Cover>sample string 4</Cover> <Grade>8</Grade> <Id>fd3761a0-f76c-4e0a-97d5-726b07a25f8b</Id> <Introduction>sample string 5</Introduction> <Semester>第一学期</Semester> <TeachingClassId>aefc8406-dccc-4bea-be87-385aaf9ba79f</TeachingClassId> <TeachingClassName>sample string 7</TeachingClassName> <TeachingClassPId>1</TeachingClassPId> <UserID>sample string 2</UserID> </ClassCourseSaveDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
保存班课
JsonRtnDtoOfClassCourseSaveDtoName | Description | Type | Additional information |
---|---|---|---|
Msg | string |
None. |
|
State | RtnState |
None. |
|
Data | ClassCourseSaveDto |
None. |
Response Formats
application/json, text/json
Sample:
{ "Msg": "sample string 1", "State": 100, "Data": { "Id": "df0cbee5-c576-44aa-8de4-4b40be6c0741", "UserID": "sample string 2", "ClassCourseName": "sample string 3", "Cover": "sample string 4", "Introduction": "sample string 5", "TeachingClassId": "2b9baa3b-141a-434c-81bf-9e3d9871e4d6", "TeachingClassName": "sample string 7", "TeachingClassPId": 1, "Semester": 1, "Grade": 8 } }
text/html
Sample:
{"Msg":"sample string 1","State":100,"Data":{"Id":"df0cbee5-c576-44aa-8de4-4b40be6c0741","UserID":"sample string 2","ClassCourseName":"sample string 3","Cover":"sample string 4","Introduction":"sample string 5","TeachingClassId":"2b9baa3b-141a-434c-81bf-9e3d9871e4d6","TeachingClassName":"sample string 7","TeachingClassPId":1,"Semester":1,"Grade":8}}
application/xml, text/xml
Sample:
<JsonRtnDtoOfClassCourseSaveDtov3CTEUQJ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <Data> <ClassCourseName>sample string 3</ClassCourseName> <Cover>sample string 4</Cover> <Grade>8</Grade> <Id>df0cbee5-c576-44aa-8de4-4b40be6c0741</Id> <Introduction>sample string 5</Introduction> <Semester>第一学期</Semester> <TeachingClassId>2b9baa3b-141a-434c-81bf-9e3d9871e4d6</TeachingClassId> <TeachingClassName>sample string 7</TeachingClassName> <TeachingClassPId>1</TeachingClassPId> <UserID>sample string 2</UserID> </Data> <Msg>sample string 1</Msg> <State>Display</State> </JsonRtnDtoOfClassCourseSaveDtov3CTEUQJ>
text/javascript, application/javascript, application/json-p
Sample:
/**/ typeof === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"Id":"df0cbee5-c576-44aa-8de4-4b40be6c0741","UserID":"sample string 2","ClassCourseName":"sample string 3","Cover":"sample string 4","Introduction":"sample string 5","TeachingClassId":"2b9baa3b-141a-434c-81bf-9e3d9871e4d6","TeachingClassName":"sample string 7","TeachingClassPId":1,"Semester":1,"Grade":8}});