POST api/Manage/SaveQuestion

Request Information

URI Parameters

None.

Body Parameters

QuestionRequest
NameDescriptionTypeAdditional information
id

integer

None.

DepId

integer

None.

NType

integer

None.

PName

string

None.

SContent

string

None.

SEasy

string

None.

SRemark

string

None.

SRight

string

None.

Answers

Collection of AnswerModel

None.

OpenId

string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "DepId": 2,
  "NType": 1,
  "PName": "sample string 3",
  "SContent": "sample string 4",
  "SEasy": "sample string 5",
  "SRemark": "sample string 6",
  "SRight": "sample string 7",
  "Answers": [
    {
      "Id": 1,
      "SSort": "sample string 2",
      "Answer": "sample string 3",
      "IsRight": 4
    },
    {
      "Id": 1,
      "SSort": "sample string 2",
      "Answer": "sample string 3",
      "IsRight": 4
    }
  ],
  "OpenId": "sample string 8"
}

application/xml, text/xml

Sample:
<QuestionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LearnAPI">
  <OpenId>sample string 8</OpenId>
  <Answers>
    <AnswerModel>
      <Answer>sample string 3</Answer>
      <Id>1</Id>
      <IsRight>4</IsRight>
      <SSort>sample string 2</SSort>
    </AnswerModel>
    <AnswerModel>
      <Answer>sample string 3</Answer>
      <Id>1</Id>
      <IsRight>4</IsRight>
      <SSort>sample string 2</SSort>
    </AnswerModel>
  </Answers>
  <DepId>2</DepId>
  <NType>1</NType>
  <PName>sample string 3</PName>
  <SContent>sample string 4</SContent>
  <SEasy>sample string 5</SEasy>
  <SRemark>sample string 6</SRemark>
  <SRight>sample string 7</SRight>
  <id>1</id>
</QuestionRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BaseResponse
NameDescriptionTypeAdditional information
msg

string

None.

code

integer

None.

total

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "msg": "sample string 1",
  "code": 2,
  "total": 3
}

application/xml, text/xml

Sample:
<BaseResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LearnAPI">
  <code>2</code>
  <msg>sample string 1</msg>
  <total>3</total>
</BaseResponse>