POST api/homework/switch
作业状态切换
Request Information
URI Parameters
None.
Body Parameters
试卷切换DTO
TestClassSwitchDtoName | Description | Type | Additional information |
---|---|---|---|
PaperIds |
操作的试卷编号集合 |
Collection of globally unique identifier |
None. |
State |
切换状态 true 为禁用 false 为启用 |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "PaperIds": [ "1cc82b50-e333-44a4-b90f-cc86d6b41382", "c1d11223-11ed-4182-8104-69b8e5b3e22b" ], "State": true }
text/html
Sample:
{"PaperIds":["1cc82b50-e333-44a4-b90f-cc86d6b41382","c1d11223-11ed-4182-8104-69b8e5b3e22b"],"State":true}
application/xml, text/xml
Sample:
<TestClassSwitchDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <PaperIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:guid>1cc82b50-e333-44a4-b90f-cc86d6b41382</d2p1:guid> <d2p1:guid>c1d11223-11ed-4182-8104-69b8e5b3e22b</d2p1:guid> </PaperIds> <State>true</State> </TestClassSwitchDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
作业状态切换
JsonRtnDtoOfBooleanName | Description | Type | Additional information |
---|---|---|---|
Msg | string |
None. |
|
State | RtnState |
None. |
|
Data | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "Msg": "sample string 1", "State": 100, "Data": true }
text/html
Sample:
{"Msg":"sample string 1","State":100,"Data":true}
application/xml, text/xml
Sample:
<JsonRtnDtoOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <Data>true</Data> <Msg>sample string 1</Msg> <State>Display</State> </JsonRtnDtoOfboolean>
text/javascript, application/javascript, application/json-p
Sample:
/**/ typeof === 'function' && ({"Msg":"sample string 1","State":100,"Data":true});