POST api/tpl/CreateObjectiveQuestions

Request Information

URI Parameters

None.

Body Parameters

Collection of CreateObjectiveQuestionsInput
NameDescriptionTypeAdditional information
QuestionsId

string

None.

ExamCourseId

string

None.

QuestionsName

string

None.

FrameId

string

None.

SerialNo

integer

None.

PageNo

integer

None.

MarkType

integer

None.

Answers

string

None.

FullScore

string

None.

IsFrame

integer

None.

ValueType

integer

None.

OptionCount

integer

None.

IsVertical

integer

None.

Score

decimal number

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "QuestionsId": "sample string 1",
    "ExamCourseId": "sample string 2",
    "QuestionsName": "sample string 3",
    "FrameId": "sample string 4",
    "SerialNo": 5,
    "PageNo": 6,
    "MarkType": 7,
    "Answers": "sample string 8",
    "FullScore": "sample string 9",
    "IsFrame": 10,
    "ValueType": 11,
    "OptionCount": 12,
    "IsVertical": 13,
    "Score": 1.0
  },
  {
    "QuestionsId": "sample string 1",
    "ExamCourseId": "sample string 2",
    "QuestionsName": "sample string 3",
    "FrameId": "sample string 4",
    "SerialNo": 5,
    "PageNo": 6,
    "MarkType": 7,
    "Answers": "sample string 8",
    "FullScore": "sample string 9",
    "IsFrame": 10,
    "ValueType": 11,
    "OptionCount": 12,
    "IsVertical": 13,
    "Score": 1.0
  }
]

text/xml

Sample:
<ArrayOfCreateObjectiveQuestionsInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ems.Domain.Tpl.Dtos.InputDtos">
  <CreateObjectiveQuestionsInput>
    <Answers>sample string 8</Answers>
    <ExamCourseId>sample string 2</ExamCourseId>
    <FrameId>sample string 4</FrameId>
    <FullScore>sample string 9</FullScore>
    <IsFrame>10</IsFrame>
    <IsVertical>13</IsVertical>
    <MarkType>7</MarkType>
    <OptionCount>12</OptionCount>
    <PageNo>6</PageNo>
    <QuestionsId>sample string 1</QuestionsId>
    <QuestionsName>sample string 3</QuestionsName>
    <Score>1</Score>
    <SerialNo>5</SerialNo>
    <ValueType>11</ValueType>
  </CreateObjectiveQuestionsInput>
  <CreateObjectiveQuestionsInput>
    <Answers>sample string 8</Answers>
    <ExamCourseId>sample string 2</ExamCourseId>
    <FrameId>sample string 4</FrameId>
    <FullScore>sample string 9</FullScore>
    <IsFrame>10</IsFrame>
    <IsVertical>13</IsVertical>
    <MarkType>7</MarkType>
    <OptionCount>12</OptionCount>
    <PageNo>6</PageNo>
    <QuestionsId>sample string 1</QuestionsId>
    <QuestionsName>sample string 3</QuestionsName>
    <Score>1</Score>
    <SerialNo>5</SerialNo>
    <ValueType>11</ValueType>
  </CreateObjectiveQuestionsInput>
</ArrayOfCreateObjectiveQuestionsInput>

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 'List`1'.

Response Information

Resource Description

ServiceResult
NameDescriptionTypeAdditional information
RetCode

integer

None.

Msg

string

None.

Result

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "RetCode": 1,
  "Msg": "sample string 2",
  "Result": {}
}

text/xml

Sample:
<ServiceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tdf.Utils.Networking">
  <Msg>sample string 2</Msg>
  <Result />
  <RetCode>1</RetCode>
</ServiceResult>