POST api/testpaper/settestclasses

设置参考班级

Request Information

URI Parameters

None.

Body Parameters

SetTestClassDto
NameDescriptionTypeAdditional information
PaperId

试卷编号

globally unique identifier

None.

Ltcd

参考班级

Collection of TestClassDto

None.

Request Formats

application/json, text/json

Sample:
{
  "PaperId": "ab119408-7770-4b65-840d-fe3f54736910",
  "Ltcd": [
    {
      "ClassType": 1,
      "TeachingClassId": "39157443-11d6-4340-a9aa-2c5feb8ddf01",
      "StructureId": 2,
      "TestPaperId": "4597aadd-fe5e-4582-bfa9-5a2723193d3d"
    },
    {
      "ClassType": 1,
      "TeachingClassId": "39157443-11d6-4340-a9aa-2c5feb8ddf01",
      "StructureId": 2,
      "TestPaperId": "4597aadd-fe5e-4582-bfa9-5a2723193d3d"
    }
  ]
}

text/html

Sample:
{"PaperId":"ab119408-7770-4b65-840d-fe3f54736910","Ltcd":[{"ClassType":1,"TeachingClassId":"39157443-11d6-4340-a9aa-2c5feb8ddf01","StructureId":2,"TestPaperId":"4597aadd-fe5e-4582-bfa9-5a2723193d3d"},{"ClassType":1,"TeachingClassId":"39157443-11d6-4340-a9aa-2c5feb8ddf01","StructureId":2,"TestPaperId":"4597aadd-fe5e-4582-bfa9-5a2723193d3d"}]}

application/xml, text/xml

Sample:
<SetTestClassDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <Ltcd>
    <TestClassDto>
      <ClassType>教学班级</ClassType>
      <StructureId>2</StructureId>
      <TeachingClassId>39157443-11d6-4340-a9aa-2c5feb8ddf01</TeachingClassId>
      <TestPaperId>4597aadd-fe5e-4582-bfa9-5a2723193d3d</TestPaperId>
    </TestClassDto>
    <TestClassDto>
      <ClassType>教学班级</ClassType>
      <StructureId>2</StructureId>
      <TeachingClassId>39157443-11d6-4340-a9aa-2c5feb8ddf01</TeachingClassId>
      <TestPaperId>4597aadd-fe5e-4582-bfa9-5a2723193d3d</TestPaperId>
    </TestClassDto>
  </Ltcd>
  <PaperId>ab119408-7770-4b65-840d-fe3f54736910</PaperId>
</SetTestClassDto>

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