POST api/QuestionOption

Request Information

URI Parameters

None.

Body Parameters

QuestionOption
NameDescriptionTypeAdditional information
RecordNo

integer

None.

OptionName

string

None.

Discription

string

None.

IsNameVisible

boolean

None.

IsDiscriptionVisible

boolean

None.

QuestionFK

integer

None.

Question

Question

None.

CreatedOn

date

None.

UpdatedOn

date

None.

IsDeleted

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "RecordNo": 1,
  "OptionName": "sample string 2",
  "Discription": "sample string 3",
  "IsNameVisible": true,
  "IsDiscriptionVisible": true,
  "QuestionFK": 6,
  "Question": {
    "RecordNo": 1,
    "QuestionName": "sample string 2",
    "MockTestFK": 1,
    "QuestionTypeFk": 4,
    "QuestionType": {
      "RecordNo": 1,
      "QuestionTypeName": "sample string 2",
      "CreatedOn": "2024-03-29T10:11:32.636766+00:00",
      "UpdatedOn": "2024-03-29T10:11:32.636766+00:00",
      "IsDeleted": true
    },
    "Explanation": "sample string 5",
    "CreatedOn": "2024-03-29T10:11:32.636766+00:00",
    "UpdatedOn": "2024-03-29T10:11:32.636766+00:00",
    "IsDeleted": true,
    "QuestionOption": [],
    "DropDownName": "1-sample string 2",
    "SampleEssay": "sample string 8",
    "LetterGuide": "sample string 9"
  },
  "CreatedOn": "2024-03-29T10:11:32.636766+00:00",
  "UpdatedOn": "2024-03-29T10:11:32.636766+00:00",
  "IsDeleted": true
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[TrishAcademy.Models.QuestionOption, TrishAcademy, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'System.Collections.Generic.List`1[[TrishAcademy.Models.QuestionOption, TrishAcademy, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' contains cycles and cannot be serialized if reference tracking is disabled.

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.