POST api/interact/teacherpubtest

教师发起测试

Request Information

URI Parameters

None.

Body Parameters

传入参数

ClassTestDto
NameDescriptionTypeAdditional information
cid

班课编号

globally unique identifier

None.

Title

标题

string

None.

ClassPrepareIds

备课题ID

Collection of globally unique identifier

None.

list

学生答题记录

Collection of ClassStuTest

None.

IsEnd

学生是否被停止动作

boolean

None.

teacherid

教师id

string

None.

Request Formats

application/json, text/json

Sample:
{
  "cid": "710252a6-6a1d-4627-b8ce-187f3b34ddcc",
  "Title": "sample string 2",
  "ClassPrepareIds": [
    "82099965-db39-4f7a-90f5-2499a0f236b2",
    "96836853-4221-4437-ac2a-d469a24d5a20"
  ],
  "list": [
    {
      "Id": "72b45247-963b-417d-91da-b5bec540f21f",
      "ClassPrepareId": "52fba490-03c4-432d-9ccb-6f11ec8dd371",
      "Title": "sample string 3",
      "TrueAnswer": "sample string 4",
      "StuAnswer": "sample string 5",
      "IsTrue": true,
      "StuId": "sample string 7",
      "CourseId": "838df16e-9258-4367-a7ed-c076179ee796",
      "CreatedTime": "2024-09-25T00:11:54.3118753+08:00"
    },
    {
      "Id": "72b45247-963b-417d-91da-b5bec540f21f",
      "ClassPrepareId": "52fba490-03c4-432d-9ccb-6f11ec8dd371",
      "Title": "sample string 3",
      "TrueAnswer": "sample string 4",
      "StuAnswer": "sample string 5",
      "IsTrue": true,
      "StuId": "sample string 7",
      "CourseId": "838df16e-9258-4367-a7ed-c076179ee796",
      "CreatedTime": "2024-09-25T00:11:54.3118753+08:00"
    }
  ],
  "IsEnd": true,
  "teacherid": "sample string 4"
}

text/html

Sample:
{"cid":"710252a6-6a1d-4627-b8ce-187f3b34ddcc","Title":"sample string 2","ClassPrepareIds":["82099965-db39-4f7a-90f5-2499a0f236b2","96836853-4221-4437-ac2a-d469a24d5a20"],"list":[{"Id":"72b45247-963b-417d-91da-b5bec540f21f","ClassPrepareId":"52fba490-03c4-432d-9ccb-6f11ec8dd371","Title":"sample string 3","TrueAnswer":"sample string 4","StuAnswer":"sample string 5","IsTrue":true,"StuId":"sample string 7","CourseId":"838df16e-9258-4367-a7ed-c076179ee796","CreatedTime":"2024-09-25T00:11:54.3118753+08:00"},{"Id":"72b45247-963b-417d-91da-b5bec540f21f","ClassPrepareId":"52fba490-03c4-432d-9ccb-6f11ec8dd371","Title":"sample string 3","TrueAnswer":"sample string 4","StuAnswer":"sample string 5","IsTrue":true,"StuId":"sample string 7","CourseId":"838df16e-9258-4367-a7ed-c076179ee796","CreatedTime":"2024-09-25T00:11:54.3118753+08:00"}],"IsEnd":true,"teacherid":"sample string 4"}

application/xml, text/xml

Sample:
<ClassTestDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <ClassPrepareIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>82099965-db39-4f7a-90f5-2499a0f236b2</d2p1:guid>
    <d2p1:guid>96836853-4221-4437-ac2a-d469a24d5a20</d2p1:guid>
  </ClassPrepareIds>
  <IsEnd>true</IsEnd>
  <Title>sample string 2</Title>
  <cid>710252a6-6a1d-4627-b8ce-187f3b34ddcc</cid>
  <list xmlns:d2p1="http://schemas.datacontract.org/2004/07/BJ.Data">
    <d2p1:ClassStuTest>
      <d2p1:ClassPrepareId>52fba490-03c4-432d-9ccb-6f11ec8dd371</d2p1:ClassPrepareId>
      <d2p1:CourseId>838df16e-9258-4367-a7ed-c076179ee796</d2p1:CourseId>
      <d2p1:CreatedTime>2024-09-25T00:11:54.3118753+08:00</d2p1:CreatedTime>
      <d2p1:Id>72b45247-963b-417d-91da-b5bec540f21f</d2p1:Id>
      <d2p1:IsTrue>true</d2p1:IsTrue>
      <d2p1:StuAnswer>sample string 5</d2p1:StuAnswer>
      <d2p1:StuId>sample string 7</d2p1:StuId>
      <d2p1:Title>sample string 3</d2p1:Title>
      <d2p1:TrueAnswer>sample string 4</d2p1:TrueAnswer>
    </d2p1:ClassStuTest>
    <d2p1:ClassStuTest>
      <d2p1:ClassPrepareId>52fba490-03c4-432d-9ccb-6f11ec8dd371</d2p1:ClassPrepareId>
      <d2p1:CourseId>838df16e-9258-4367-a7ed-c076179ee796</d2p1:CourseId>
      <d2p1:CreatedTime>2024-09-25T00:11:54.3118753+08:00</d2p1:CreatedTime>
      <d2p1:Id>72b45247-963b-417d-91da-b5bec540f21f</d2p1:Id>
      <d2p1:IsTrue>true</d2p1:IsTrue>
      <d2p1:StuAnswer>sample string 5</d2p1:StuAnswer>
      <d2p1:StuId>sample string 7</d2p1:StuId>
      <d2p1:Title>sample string 3</d2p1:Title>
      <d2p1:TrueAnswer>sample string 4</d2p1:TrueAnswer>
    </d2p1:ClassStuTest>
  </list>
  <teacherid>sample string 4</teacherid>
</ClassTestDto>

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