POST api/Ems/CreateExamTeacher

新增

Request Information

URI Parameters

None.

Body Parameters

CreateExamTeacherCommand
NameDescriptionTypeAdditional information
UserId

string

None.

RoleId

string

None.

ExamId

string

None.

CourseId

string

None.

DispOrder

integer

None.

ExecutionResult

ServiceResult

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": "sample string 1",
  "RoleId": "sample string 2",
  "ExamId": "sample string 3",
  "CourseId": "sample string 4",
  "DispOrder": 1,
  "ExecutionResult": {
    "RetCode": 1,
    "Msg": "sample string 2",
    "Result": {}
  }
}

text/xml

Sample:
<CreateExamTeacherCommand xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ems.Domain.Ems.Commands">
  <CourseId>sample string 4</CourseId>
  <DispOrder>1</DispOrder>
  <ExamId>sample string 3</ExamId>
  <ExecutionResult xmlns:d2p1="http://schemas.datacontract.org/2004/07/Tdf.Utils.Networking">
    <d2p1:Msg>sample string 2</d2p1:Msg>
    <d2p1:Result />
    <d2p1:RetCode>1</d2p1:RetCode>
  </ExecutionResult>
  <RoleId>sample string 2</RoleId>
  <UserId>sample string 1</UserId>
</CreateExamTeacherCommand>

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 'CreateExamTeacherCommand'.

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>