POST api/teachingclass/setteachingclassstudent

指定教学班级学生名单

Request Information

URI Parameters

None.

Body Parameters

TeachingClassStudentSaveDto
NameDescriptionTypeAdditional information
TeachingClassId

教学班级编号

globally unique identifier

None.

MemberIds

学生编号

Collection of string

None.

OnlyAdd

仅新增

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "TeachingClassId": "c7b3194b-eff0-4c81-be1e-b0f9ae8083fd",
  "MemberIds": [
    "sample string 1",
    "sample string 2"
  ],
  "OnlyAdd": true
}

text/html

Sample:
{"TeachingClassId":"c7b3194b-eff0-4c81-be1e-b0f9ae8083fd","MemberIds":["sample string 1","sample string 2"],"OnlyAdd":true}

application/xml, text/xml

Sample:
<TeachingClassStudentSaveDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <MemberIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </MemberIds>
  <OnlyAdd>true</OnlyAdd>
  <TeachingClassId>c7b3194b-eff0-4c81-be1e-b0f9ae8083fd</TeachingClassId>
</TeachingClassStudentSaveDto>

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