POST api/testpaper/SavePaperPwd

保存试卷查看密码

Request Information

URI Parameters

None.

Body Parameters

PaperViewPwdDto
NameDescriptionTypeAdditional information
PaperId

试卷id

globally unique identifier

None.

EnableViewTestPaper

是否启用试卷查看密码

boolean

None.

ViewTestPaperPwd

试卷查看密码

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PaperId": "9756e505-2767-4ad7-9c65-425e2fd52057",
  "EnableViewTestPaper": true,
  "ViewTestPaperPwd": "sample string 3"
}

text/html

Sample:
{"PaperId":"9756e505-2767-4ad7-9c65-425e2fd52057","EnableViewTestPaper":true,"ViewTestPaperPwd":"sample string 3"}

application/xml, text/xml

Sample:
<PaperViewPwdDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeachingSysApi.Controllers">
  <EnableViewTestPaper>true</EnableViewTestPaper>
  <PaperId>9756e505-2767-4ad7-9c65-425e2fd52057</PaperId>
  <ViewTestPaperPwd>sample string 3</ViewTestPaperPwd>
</PaperViewPwdDto>

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