POST api/contest/addstuexamplace

给学生分配考场(正式考试)

Request Information

URI Parameters

None.

Body Parameters

参数

TempClass
NameDescriptionTypeAdditional information
list

报名详情结合

Collection of CompetitionDetail

None.

sepList

正式考试考场分配记录

Collection of StuExamPlace

None.

Request Formats

application/json, text/json

Sample:
{
  "list": [
    {
      "Id": 1,
      "ExamCode": "sample string 2",
      "CompetitionId": "f5f2a64a-2010-44d5-82ae-8e6cee4f5cce",
      "StuId": "sample string 4",
      "ExamPlaceId": 5,
      "CreatedTime": "2024-09-25T00:11:16.5466475+08:00"
    },
    {
      "Id": 1,
      "ExamCode": "sample string 2",
      "CompetitionId": "f5f2a64a-2010-44d5-82ae-8e6cee4f5cce",
      "StuId": "sample string 4",
      "ExamPlaceId": 5,
      "CreatedTime": "2024-09-25T00:11:16.5466475+08:00"
    }
  ],
  "sepList": [
    {
      "Id": 1,
      "StuId": "sample string 2",
      "StuName": "sample string 3",
      "StuSex": "sample string 4",
      "PaperId": "10d548fb-404b-4cfa-bf21-6daea063990d",
      "ExamPlaceId": 6,
      "CreateTime": "2024-09-25T00:11:16.5466475+08:00"
    },
    {
      "Id": 1,
      "StuId": "sample string 2",
      "StuName": "sample string 3",
      "StuSex": "sample string 4",
      "PaperId": "10d548fb-404b-4cfa-bf21-6daea063990d",
      "ExamPlaceId": 6,
      "CreateTime": "2024-09-25T00:11:16.5466475+08:00"
    }
  ]
}

text/html

Sample:
{"list":[{"Id":1,"ExamCode":"sample string 2","CompetitionId":"f5f2a64a-2010-44d5-82ae-8e6cee4f5cce","StuId":"sample string 4","ExamPlaceId":5,"CreatedTime":"2024-09-25T00:11:16.5466475+08:00"},{"Id":1,"ExamCode":"sample string 2","CompetitionId":"f5f2a64a-2010-44d5-82ae-8e6cee4f5cce","StuId":"sample string 4","ExamPlaceId":5,"CreatedTime":"2024-09-25T00:11:16.5466475+08:00"}],"sepList":[{"Id":1,"StuId":"sample string 2","StuName":"sample string 3","StuSex":"sample string 4","PaperId":"10d548fb-404b-4cfa-bf21-6daea063990d","ExamPlaceId":6,"CreateTime":"2024-09-25T00:11:16.5466475+08:00"},{"Id":1,"StuId":"sample string 2","StuName":"sample string 3","StuSex":"sample string 4","PaperId":"10d548fb-404b-4cfa-bf21-6daea063990d","ExamPlaceId":6,"CreateTime":"2024-09-25T00:11:16.5466475+08:00"}]}

application/xml, text/xml

Sample:
<TempClass xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeachingSysApi.Areas.JingSai.Controllers">
  <list xmlns:d2p1="http://schemas.datacontract.org/2004/07/BJ.Data">
    <d2p1:CompetitionDetail>
      <d2p1:CompetitionId>f5f2a64a-2010-44d5-82ae-8e6cee4f5cce</d2p1:CompetitionId>
      <d2p1:CreatedTime>2024-09-25T00:11:16.5466475+08:00</d2p1:CreatedTime>
      <d2p1:ExamCode>sample string 2</d2p1:ExamCode>
      <d2p1:ExamPlaceId>5</d2p1:ExamPlaceId>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:StuId>sample string 4</d2p1:StuId>
    </d2p1:CompetitionDetail>
    <d2p1:CompetitionDetail>
      <d2p1:CompetitionId>f5f2a64a-2010-44d5-82ae-8e6cee4f5cce</d2p1:CompetitionId>
      <d2p1:CreatedTime>2024-09-25T00:11:16.5466475+08:00</d2p1:CreatedTime>
      <d2p1:ExamCode>sample string 2</d2p1:ExamCode>
      <d2p1:ExamPlaceId>5</d2p1:ExamPlaceId>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:StuId>sample string 4</d2p1:StuId>
    </d2p1:CompetitionDetail>
  </list>
  <sepList xmlns:d2p1="http://schemas.datacontract.org/2004/07/BJ.Data">
    <d2p1:StuExamPlace>
      <d2p1:CreateTime>2024-09-25T00:11:16.5466475+08:00</d2p1:CreateTime>
      <d2p1:ExamPlaceId>6</d2p1:ExamPlaceId>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:PaperId>10d548fb-404b-4cfa-bf21-6daea063990d</d2p1:PaperId>
      <d2p1:StuId>sample string 2</d2p1:StuId>
      <d2p1:StuName>sample string 3</d2p1:StuName>
      <d2p1:StuSex>sample string 4</d2p1:StuSex>
    </d2p1:StuExamPlace>
    <d2p1:StuExamPlace>
      <d2p1:CreateTime>2024-09-25T00:11:16.5466475+08:00</d2p1:CreateTime>
      <d2p1:ExamPlaceId>6</d2p1:ExamPlaceId>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:PaperId>10d548fb-404b-4cfa-bf21-6daea063990d</d2p1:PaperId>
      <d2p1:StuId>sample string 2</d2p1:StuId>
      <d2p1:StuName>sample string 3</d2p1:StuName>
      <d2p1:StuSex>sample string 4</d2p1:StuSex>
    </d2p1:StuExamPlace>
  </sepList>
</TempClass>

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