POST api/homework/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": "43ae74f3-6a74-4ad6-8cd0-2045390e3157",
  "Ltcd": [
    {
      "ClassType": 1,
      "TeachingClassId": "ab021285-887d-46ce-a9d9-bfccc7173612",
      "StructureId": 2,
      "TestPaperId": "8f6effb7-9364-4c9c-937b-156bb62df960"
    },
    {
      "ClassType": 1,
      "TeachingClassId": "ab021285-887d-46ce-a9d9-bfccc7173612",
      "StructureId": 2,
      "TestPaperId": "8f6effb7-9364-4c9c-937b-156bb62df960"
    }
  ]
}

text/html

Sample:
{"PaperId":"43ae74f3-6a74-4ad6-8cd0-2045390e3157","Ltcd":[{"ClassType":1,"TeachingClassId":"ab021285-887d-46ce-a9d9-bfccc7173612","StructureId":2,"TestPaperId":"8f6effb7-9364-4c9c-937b-156bb62df960"},{"ClassType":1,"TeachingClassId":"ab021285-887d-46ce-a9d9-bfccc7173612","StructureId":2,"TestPaperId":"8f6effb7-9364-4c9c-937b-156bb62df960"}]}

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>ab021285-887d-46ce-a9d9-bfccc7173612</TeachingClassId>
      <TestPaperId>8f6effb7-9364-4c9c-937b-156bb62df960</TestPaperId>
    </TestClassDto>
    <TestClassDto>
      <ClassType>教学班级</ClassType>
      <StructureId>2</StructureId>
      <TeachingClassId>ab021285-887d-46ce-a9d9-bfccc7173612</TeachingClassId>
      <TestPaperId>8f6effb7-9364-4c9c-937b-156bb62df960</TestPaperId>
    </TestClassDto>
  </Ltcd>
  <PaperId>43ae74f3-6a74-4ad6-8cd0-2045390e3157</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});