POST api/courseware/save
保存课件
Request Information
URI Parameters
None.
Body Parameters
课件实体
CoursewareInDtoName | Description | Type | Additional information |
---|---|---|---|
CatalogID |
课件所属目录编辑 |
integer |
None. |
CourseId |
课件编号 |
globally unique identifier |
None. |
Name |
课件名称 |
string |
None. |
ContentType |
内容类型 |
integer |
None. |
Link |
文件链接地址 |
string |
None. |
Content |
富文本内容 |
string |
None. |
ResourceName |
资源名称 |
string |
None. |
ResourceId |
资源编号 |
globally unique identifier |
None. |
AppArrangeId |
文件类资源应用分类 |
integer |
None. |
AppArrangePath |
资源Path |
string |
None. |
Intro |
资源介绍信息 |
string |
None. |
EnableMultiple |
是否启用倍数 |
boolean |
None. |
ValidateType |
验证方式(-1:不验证;0:随机拖动或验证码,1:拖动拼块;2:验证码;) |
ValidateType |
None. |
RetestRepository |
题库 |
integer |
None. |
DialogTime |
对话框弹出间隔时间(单位:分钟) |
decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{ "CatalogID": 1, "CourseId": "d9008699-0f6a-4507-bfe4-5dd0cfa7c444", "Name": "sample string 3", "ContentType": 4, "Link": "sample string 5", "Content": "sample string 6", "ResourceName": "sample string 7", "ResourceId": "a0cca996-feb4-46c1-a517-eae0cc8a46eb", "AppArrangeId": 9, "AppArrangePath": "sample string 10", "Intro": "sample string 11", "EnableMultiple": true, "ValidateType": 0, "RetestRepository": 13, "DialogTime": 14.0 }
text/html
Sample:
{"CatalogID":1,"CourseId":"d9008699-0f6a-4507-bfe4-5dd0cfa7c444","Name":"sample string 3","ContentType":4,"Link":"sample string 5","Content":"sample string 6","ResourceName":"sample string 7","ResourceId":"a0cca996-feb4-46c1-a517-eae0cc8a46eb","AppArrangeId":9,"AppArrangePath":"sample string 10","Intro":"sample string 11","EnableMultiple":true,"ValidateType":0,"RetestRepository":13,"DialogTime":14.0}
application/xml, text/xml
Sample:
<CoursewareInDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <AppArrangeId>9</AppArrangeId> <AppArrangePath>sample string 10</AppArrangePath> <CatalogID>1</CatalogID> <Content>sample string 6</Content> <ContentType>4</ContentType> <CourseId>d9008699-0f6a-4507-bfe4-5dd0cfa7c444</CourseId> <DialogTime>14</DialogTime> <EnableMultiple>true</EnableMultiple> <Intro>sample string 11</Intro> <Link>sample string 5</Link> <Name>sample string 3</Name> <ResourceId>a0cca996-feb4-46c1-a517-eae0cc8a46eb</ResourceId> <ResourceName>sample string 7</ResourceName> <RetestRepository>13</RetestRepository> <ValidateType>随机拖动或验证码</ValidateType> </CoursewareInDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
保存课件
JsonRtnDtoOfCoursewareName | Description | Type | Additional information |
---|---|---|---|
Msg | string |
None. |
|
State | RtnState |
None. |
|
Data | Courseware |
None. |
Response Formats
application/json, text/json
Sample:
{ "Msg": "sample string 1", "State": 100, "Data": { "CatalogID": 1, "CourseId": "cef77451-4076-4e0e-a8f6-b3086c08ce49", "Name": "sample string 3", "ContentType": 4, "Link": "sample string 5", "Content": "sample string 6", "ResourceName": "sample string 7", "ResourceId": "4053c367-ff56-4cef-baad-5693d71f509c", "RetestRepository": 9, "CreatedTime": "2024-09-25T00:10:31.8122454+08:00", "EnableMultiple": true, "ValidateType": 0, "DialogTime": 12.0 } }
text/html
Sample:
{"Msg":"sample string 1","State":100,"Data":{"CatalogID":1,"CourseId":"cef77451-4076-4e0e-a8f6-b3086c08ce49","Name":"sample string 3","ContentType":4,"Link":"sample string 5","Content":"sample string 6","ResourceName":"sample string 7","ResourceId":"4053c367-ff56-4cef-baad-5693d71f509c","RetestRepository":9,"CreatedTime":"2024-09-25T00:10:31.8122454+08:00","EnableMultiple":true,"ValidateType":0,"DialogTime":12.0}}
application/xml, text/xml
Sample:
<JsonRtnDtoOfCoursewaremEDjlcEG xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/BJ.Data"> <d2p1:CatalogID>1</d2p1:CatalogID> <d2p1:Content>sample string 6</d2p1:Content> <d2p1:ContentType>4</d2p1:ContentType> <d2p1:CourseId>cef77451-4076-4e0e-a8f6-b3086c08ce49</d2p1:CourseId> <d2p1:CreatedTime>2024-09-25T00:10:31.8122454+08:00</d2p1:CreatedTime> <d2p1:DialogTime>12</d2p1:DialogTime> <d2p1:EnableMultiple>true</d2p1:EnableMultiple> <d2p1:Link>sample string 5</d2p1:Link> <d2p1:Name>sample string 3</d2p1:Name> <d2p1:ResourceId>4053c367-ff56-4cef-baad-5693d71f509c</d2p1:ResourceId> <d2p1:ResourceName>sample string 7</d2p1:ResourceName> <d2p1:RetestRepository>9</d2p1:RetestRepository> <d2p1:ValidateType>随机拖动或验证码</d2p1:ValidateType> </Data> <Msg>sample string 1</Msg> <State>Display</State> </JsonRtnDtoOfCoursewaremEDjlcEG>
text/javascript, application/javascript, application/json-p
Sample:
/**/ typeof === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"CatalogID":1,"CourseId":"cef77451-4076-4e0e-a8f6-b3086c08ce49","Name":"sample string 3","ContentType":4,"Link":"sample string 5","Content":"sample string 6","ResourceName":"sample string 7","ResourceId":"4053c367-ff56-4cef-baad-5693d71f509c","RetestRepository":9,"CreatedTime":"2024-09-25T00:10:31.8122454+08:00","EnableMultiple":true,"ValidateType":0,"DialogTime":12.0}});