POST api/contest/savecompetition

保存竞赛信息

Request Information

URI Parameters

None.

Body Parameters

Competition
NameDescriptionTypeAdditional information
Title

竞赛名称

string

None.

CompetitionType

竞赛类型(试卷类型)

string

None.

ExamPlanId

考务ID

globally unique identifier

None.

CutOffTime

截止时间

date

None.

PaperId

关联到试卷

globally unique identifier

None.

Id

主键

globally unique identifier

None.

CreatedTime

创建时间

date

None.

IsDeleted

是否删除

boolean

None.

LastUpdatedTime

最后更新时间

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Title": "sample string 1",
  "CompetitionType": "sample string 2",
  "ExamPlanId": "ee583039-b785-4e95-b9d5-2d2d4629dd21",
  "CutOffTime": "2024-09-25T00:08:00.6248834+08:00",
  "PaperId": "a140d2f0-f35e-46cd-898a-089b365dac0f",
  "Id": "1e74d6e9-1050-40d4-bc7c-6511ce3919ea",
  "CreatedTime": "2024-09-25T00:08:00.6248834+08:00",
  "IsDeleted": true,
  "LastUpdatedTime": "2024-09-25T00:08:00.6248834+08:00"
}

text/html

Sample:
{"Title":"sample string 1","CompetitionType":"sample string 2","ExamPlanId":"ee583039-b785-4e95-b9d5-2d2d4629dd21","CutOffTime":"2024-09-25T00:08:00.6248834+08:00","PaperId":"a140d2f0-f35e-46cd-898a-089b365dac0f","Id":"1e74d6e9-1050-40d4-bc7c-6511ce3919ea","CreatedTime":"2024-09-25T00:08:00.6248834+08:00","IsDeleted":true,"LastUpdatedTime":"2024-09-25T00:08:00.6248834+08:00"}

application/xml, text/xml

Sample:
<Competition xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Data">
  <CreatedTime>2024-09-25T00:08:00.6248834+08:00</CreatedTime>
  <Id>1e74d6e9-1050-40d4-bc7c-6511ce3919ea</Id>
  <IsDeleted>true</IsDeleted>
  <LastUpdatedTime>2024-09-25T00:08:00.6248834+08:00</LastUpdatedTime>
  <CompetitionType>sample string 2</CompetitionType>
  <CutOffTime>2024-09-25T00:08:00.6248834+08:00</CutOffTime>
  <ExamPlanId>ee583039-b785-4e95-b9d5-2d2d4629dd21</ExamPlanId>
  <PaperId>a140d2f0-f35e-46cd-898a-089b365dac0f</PaperId>
  <Title>sample string 1</Title>
</Competition>

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