POST api/testpaper/switch

试卷状态切换

Request Information

URI Parameters

None.

Body Parameters

试卷切换DTO

TestClassSwitchDto
NameDescriptionTypeAdditional information
PaperIds

操作的试卷编号集合

Collection of globally unique identifier

None.

State

切换状态 true 为禁用 false 为启用

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "PaperIds": [
    "e9b14402-121d-47e5-8a43-693831914f9c",
    "2be2ac4b-751c-4b73-881d-44b7b9194a07"
  ],
  "State": true
}

text/html

Sample:
{"PaperIds":["e9b14402-121d-47e5-8a43-693831914f9c","2be2ac4b-751c-4b73-881d-44b7b9194a07"],"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>e9b14402-121d-47e5-8a43-693831914f9c</d2p1:guid>
    <d2p1:guid>2be2ac4b-751c-4b73-881d-44b7b9194a07</d2p1:guid>
  </PaperIds>
  <State>true</State>
</TestClassSwitchDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

试卷状态切换

JsonRtnDtoOfBoolean
NameDescriptionTypeAdditional 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});