POST api/PostExamDetails

Request Information

URI Parameters

None.

Body Parameters

PostExam
NameDescriptionTypeAdditional information
e_id

integer

None.

s_id

integer

None.

QuestionsAnswers

Collection of QuestionsAnswers

None.

Request Formats

application/json, text/json

Sample:
{
  "e_id": 1,
  "s_id": 2,
  "QuestionsAnswers": [
    {
      "question_id": 1,
      "answer": "sample string 2"
    },
    {
      "question_id": 1,
      "answer": "sample string 2"
    }
  ]
}

text/html

Sample:
{"e_id":1,"s_id":2,"QuestionsAnswers":[{"question_id":1,"answer":"sample string 2"},{"question_id":1,"answer":"sample string 2"}]}

application/xml, text/xml

Sample:
<PostExam xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TestSeriesAPI.Models">
  <QuestionsAnswers>
    <QuestionsAnswers>
      <answer>sample string 2</answer>
      <question_id>1</question_id>
    </QuestionsAnswers>
    <QuestionsAnswers>
      <answer>sample string 2</answer>
      <question_id>1</question_id>
    </QuestionsAnswers>
  </QuestionsAnswers>
  <e_id>1</e_id>
  <s_id>2</s_id>
</PostExam>

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

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.