POST api/SubjectTest

Request Information

URI Parameters

None.

Body Parameters

ModelTest
NameDescriptionTypeAdditional information
QIDs

Collection of string

None.

SchoolName

string

None.

TestName

string

None.

TeacherName

string

None.

TestTime

string

None.

UserID

string

None.

QCount

string

None.

BoardID

string

None.

ClassID

string

None.

SubjectID

string

None.

Request Formats

application/json, text/json

Sample:
{
  "QIDs": [
    "sample string 1",
    "sample string 2"
  ],
  "SchoolName": "sample string 1",
  "TestName": "sample string 2",
  "TeacherName": "sample string 3",
  "TestTime": "sample string 4",
  "UserID": "sample string 5",
  "QCount": "sample string 6",
  "BoardID": "sample string 7",
  "ClassID": "sample string 8",
  "SubjectID": "sample string 9"
}

application/xml, text/xml

Sample:
<ModelTest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalStudentServices.Models">
  <BoardID>sample string 7</BoardID>
  <ClassID>sample string 8</ClassID>
  <QCount>sample string 6</QCount>
  <QIDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </QIDs>
  <SchoolName>sample string 1</SchoolName>
  <SubjectID>sample string 9</SubjectID>
  <TeacherName>sample string 3</TeacherName>
  <TestName>sample string 2</TestName>
  <TestTime>sample string 4</TestTime>
  <UserID>sample string 5</UserID>
</ModelTest>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.