POST api/contest/changecompetitiononoff

改变竞赛开关的状态

Request Information

URI Parameters

None.

Body Parameters

状态和数量

CompetitionOnOff
NameDescriptionTypeAdditional information
Id

ID

globally unique identifier

None.

IsOpen

是否开启

boolean

None.

Num

学生选择竞赛报名的上限

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "98005ca1-5edd-4184-a6c3-31e408bb48f3",
  "IsOpen": true,
  "Num": 3
}

text/html

Sample:
{"Id":"98005ca1-5edd-4184-a6c3-31e408bb48f3","IsOpen":true,"Num":3}

application/xml, text/xml

Sample:
<CompetitionOnOff xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">
  <Id>98005ca1-5edd-4184-a6c3-31e408bb48f3</Id>
  <IsOpen>true</IsOpen>
  <Num>3</Num>
</CompetitionOnOff>

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