POST api/Ems/BatchCreateStudentByExamCourseId

按照科目添加参考学生信息,科目可多选

Request Information

URI Parameters

None.

Body Parameters

BatchCreateStudentByExamCourseIdInput
NameDescriptionTypeAdditional information
ExamId

string

None.

ExamCourseIds

Collection of string

None.

ClassIds

Collection of string

None.

UserId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ExamId": "sample string 1",
  "ExamCourseIds": [
    "sample string 1",
    "sample string 2"
  ],
  "ClassIds": [
    "sample string 1",
    "sample string 2"
  ],
  "UserId": "sample string 2"
}

text/xml

Sample:
<BatchCreateStudentByExamCourseIdInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ems.Domain.Ems.Dtos.InputDtos">
  <ClassIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ClassIds>
  <ExamCourseIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ExamCourseIds>
  <ExamId>sample string 1</ExamId>
  <UserId>sample string 2</UserId>
</BatchCreateStudentByExamCourseIdInput>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'BatchCreateStudentByExamCourseIdInput'.

Response Information

Resource Description

ServiceResult
NameDescriptionTypeAdditional information
RetCode

integer

None.

Msg

string

None.

Result

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "RetCode": 1,
  "Msg": "sample string 2",
  "Result": {}
}

text/xml

Sample:
<ServiceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tdf.Utils.Networking">
  <Msg>sample string 2</Msg>
  <Result />
  <RetCode>1</RetCode>
</ServiceResult>