GET api/forumsetting/loadforumsetting?courseId={courseId}
加载讨论区设置(包括版块设置)
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
courseId | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
加载讨论区设置(包括版块设置)
JsonRtnDtoOfForumSettingName | Description | Type | Additional information |
---|---|---|---|
Msg | string |
None. |
|
State | RtnState |
None. |
|
Data | ForumSetting |
None. |
Response Formats
application/json, text/json
Sample:
{ "Msg": "sample string 1", "State": 100, "Data": { "PubId": "5557be63-6a50-4cb4-9916-6691efa13b80", "Intro": "sample string 2", "ShowHotDiscuss": true, "CreatedTime": "2024-09-25T00:10:35.5466086+08:00", "Plates": [ { "Id": 1, "PubId": "34be329f-1a02-4a0a-9a5b-b2f87653520b", "Title": "sample string 3", "Intro": "sample string 4", "CreatedTime": "2024-09-25T00:10:35.5466086+08:00", "IsCustom": true, "AllowNewSubject": true, "Enabled": true }, { "Id": 1, "PubId": "34be329f-1a02-4a0a-9a5b-b2f87653520b", "Title": "sample string 3", "Intro": "sample string 4", "CreatedTime": "2024-09-25T00:10:35.5466086+08:00", "IsCustom": true, "AllowNewSubject": true, "Enabled": true } ] } }
text/html
Sample:
{"Msg":"sample string 1","State":100,"Data":{"PubId":"5557be63-6a50-4cb4-9916-6691efa13b80","Intro":"sample string 2","ShowHotDiscuss":true,"CreatedTime":"2024-09-25T00:10:35.5466086+08:00","Plates":[{"Id":1,"PubId":"34be329f-1a02-4a0a-9a5b-b2f87653520b","Title":"sample string 3","Intro":"sample string 4","CreatedTime":"2024-09-25T00:10:35.5466086+08:00","IsCustom":true,"AllowNewSubject":true,"Enabled":true},{"Id":1,"PubId":"34be329f-1a02-4a0a-9a5b-b2f87653520b","Title":"sample string 3","Intro":"sample string 4","CreatedTime":"2024-09-25T00:10:35.5466086+08:00","IsCustom":true,"AllowNewSubject":true,"Enabled":true}]}}
application/xml, text/xml
Sample:
<JsonRtnDtoOfForumSettingmEDjlcEG 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:CreatedTime>2024-09-25T00:10:35.5466086+08:00</d2p1:CreatedTime> <d2p1:Intro>sample string 2</d2p1:Intro> <d2p1:Plates> <d2p1:Plate> <d2p1:AllowNewSubject>true</d2p1:AllowNewSubject> <d2p1:CreatedTime>2024-09-25T00:10:35.5466086+08:00</d2p1:CreatedTime> <d2p1:Enabled>true</d2p1:Enabled> <d2p1:Id>1</d2p1:Id> <d2p1:Intro>sample string 4</d2p1:Intro> <d2p1:IsCustom>true</d2p1:IsCustom> <d2p1:PubId>34be329f-1a02-4a0a-9a5b-b2f87653520b</d2p1:PubId> <d2p1:Title>sample string 3</d2p1:Title> </d2p1:Plate> <d2p1:Plate> <d2p1:AllowNewSubject>true</d2p1:AllowNewSubject> <d2p1:CreatedTime>2024-09-25T00:10:35.5466086+08:00</d2p1:CreatedTime> <d2p1:Enabled>true</d2p1:Enabled> <d2p1:Id>1</d2p1:Id> <d2p1:Intro>sample string 4</d2p1:Intro> <d2p1:IsCustom>true</d2p1:IsCustom> <d2p1:PubId>34be329f-1a02-4a0a-9a5b-b2f87653520b</d2p1:PubId> <d2p1:Title>sample string 3</d2p1:Title> </d2p1:Plate> </d2p1:Plates> <d2p1:PubId>5557be63-6a50-4cb4-9916-6691efa13b80</d2p1:PubId> <d2p1:ShowHotDiscuss>true</d2p1:ShowHotDiscuss> </Data> <Msg>sample string 1</Msg> <State>Display</State> </JsonRtnDtoOfForumSettingmEDjlcEG>
text/javascript, application/javascript, application/json-p
Sample:
/**/ typeof === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"PubId":"5557be63-6a50-4cb4-9916-6691efa13b80","Intro":"sample string 2","ShowHotDiscuss":true,"CreatedTime":"2024-09-25T00:10:35.5466086+08:00","Plates":[{"Id":1,"PubId":"34be329f-1a02-4a0a-9a5b-b2f87653520b","Title":"sample string 3","Intro":"sample string 4","CreatedTime":"2024-09-25T00:10:35.5466086+08:00","IsCustom":true,"AllowNewSubject":true,"Enabled":true},{"Id":1,"PubId":"34be329f-1a02-4a0a-9a5b-b2f87653520b","Title":"sample string 3","Intro":"sample string 4","CreatedTime":"2024-09-25T00:10:35.5466086+08:00","IsCustom":true,"AllowNewSubject":true,"Enabled":true}]}});