POST api/section/save
更新课程版块
Request Information
URI Parameters
None.
Body Parameters
课程版本实体
SectionName | Description | Type | Additional information |
---|---|---|---|
CourseID |
课程编号 |
globally unique identifier |
None. |
CreatedTime |
创建时间 |
date |
None. |
DirIsOpen |
是否开启课程目录版块 |
boolean |
None. |
TestIsOpen |
是否开试题/启测验版块 |
boolean |
None. |
DiscussIsOpen |
是否开启讨论版块 |
boolean |
None. |
NoticeIsOpen |
是否开启公告版块 |
boolean |
None. |
QuestionnaireIsOpen |
是否开启课程问卷版块 |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "CourseID": "cd267ca7-1fb1-4e30-897e-229d55dd3b35", "CreatedTime": "2024-09-25T00:07:38.7970932+08:00", "DirIsOpen": true, "TestIsOpen": true, "DiscussIsOpen": true, "NoticeIsOpen": true, "QuestionnaireIsOpen": true }
text/html
Sample:
{"CourseID":"cd267ca7-1fb1-4e30-897e-229d55dd3b35","CreatedTime":"2024-09-25T00:07:38.7970932+08:00","DirIsOpen":true,"TestIsOpen":true,"DiscussIsOpen":true,"NoticeIsOpen":true,"QuestionnaireIsOpen":true}
application/xml, text/xml
Sample:
<Section xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Data"> <CourseID>cd267ca7-1fb1-4e30-897e-229d55dd3b35</CourseID> <CreatedTime>2024-09-25T00:07:38.7970932+08:00</CreatedTime> <DirIsOpen>true</DirIsOpen> <DiscussIsOpen>true</DiscussIsOpen> <NoticeIsOpen>true</NoticeIsOpen> <QuestionnaireIsOpen>true</QuestionnaireIsOpen> <TestIsOpen>true</TestIsOpen> </Section>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
更新课程版块
JsonRtnDtoOfSectionName | Description | Type | Additional information |
---|---|---|---|
Msg | string |
None. |
|
State | RtnState |
None. |
|
Data | Section |
None. |
Response Formats
application/json, text/json
Sample:
{ "Msg": "sample string 1", "State": 100, "Data": { "CourseID": "f56b9e27-0f28-4332-85a1-bafe01187b6a", "CreatedTime": "2024-09-25T00:07:38.7970932+08:00", "DirIsOpen": true, "TestIsOpen": true, "DiscussIsOpen": true, "NoticeIsOpen": true, "QuestionnaireIsOpen": true } }
text/html
Sample:
{"Msg":"sample string 1","State":100,"Data":{"CourseID":"f56b9e27-0f28-4332-85a1-bafe01187b6a","CreatedTime":"2024-09-25T00:07:38.7970932+08:00","DirIsOpen":true,"TestIsOpen":true,"DiscussIsOpen":true,"NoticeIsOpen":true,"QuestionnaireIsOpen":true}}
application/xml, text/xml
Sample:
<JsonRtnDtoOfSectionmEDjlcEG 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:CourseID>f56b9e27-0f28-4332-85a1-bafe01187b6a</d2p1:CourseID> <d2p1:CreatedTime>2024-09-25T00:07:38.7970932+08:00</d2p1:CreatedTime> <d2p1:DirIsOpen>true</d2p1:DirIsOpen> <d2p1:DiscussIsOpen>true</d2p1:DiscussIsOpen> <d2p1:NoticeIsOpen>true</d2p1:NoticeIsOpen> <d2p1:QuestionnaireIsOpen>true</d2p1:QuestionnaireIsOpen> <d2p1:TestIsOpen>true</d2p1:TestIsOpen> </Data> <Msg>sample string 1</Msg> <State>Display</State> </JsonRtnDtoOfSectionmEDjlcEG>
text/javascript, application/javascript, application/json-p
Sample:
/**/ typeof === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"CourseID":"f56b9e27-0f28-4332-85a1-bafe01187b6a","CreatedTime":"2024-09-25T00:07:38.7970932+08:00","DirIsOpen":true,"TestIsOpen":true,"DiscussIsOpen":true,"NoticeIsOpen":true,"QuestionnaireIsOpen":true}});