POST Api/Courses/Exams/Questions/Answers/Add

Request Information

URI Parameters

None.

Body Parameters

AddAnswerRequest
NameDescriptionTypeAdditional information
idQuestionAnswer

integer

None.

idExamQuestion

integer

None.

answer

string

None.

image

string

None.

correctAnswer

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "idQuestionAnswer": 1,
  "idExamQuestion": 2,
  "answer": "sample string 3",
  "image": "sample string 4",
  "correctAnswer": 5
}

application/xml, text/xml

Sample:
<AddAnswerRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <idQuestionAnswer>1</idQuestionAnswer>
  <idExamQuestion>2</idExamQuestion>
  <answer>sample string 3</answer>
  <image>sample string 4</image>
  <correctAnswer>5</correctAnswer>
</AddAnswerRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GenericResponse
NameDescriptionTypeAdditional information
success

La solicitud se realizo correctamente

boolean

None.

error

Error arrojado por la API

string

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "error": "sample string 2"
}

application/xml, text/xml

Sample:
<GenericResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <success>true</success>
  <error>sample string 2</error>
</GenericResponse>