GET api/MockTestQuestion

Request Information

URI Parameters

None.

Body Parameters

Exception
NameDescriptionTypeAdditional information
Message

string

None.

Data

Dictionary of Object [key] and Object [value]

None.

InnerException

Exception

None.

TargetSite

MethodBase

None.

StackTrace

string

None.

HelpLink

string

None.

Source

string

None.

HResult

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ClassName": "System.Exception",
  "Message": null,
  "Data": null,
  "InnerException": null,
  "HelpURL": "sample string 1",
  "StackTraceString": null,
  "RemoteStackTraceString": null,
  "RemoteStackIndex": 0,
  "ExceptionMethod": null,
  "HResult": 3,
  "Source": "sample string 2",
  "WatsonBuckets": null
}

application/xml, text/xml

Sample:
<Exception xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.datacontract.org/2004/07/System">
  <ClassName i:type="x:string" xmlns="">System.Exception</ClassName>
  <Message i:nil="true" xmlns="" />
  <Data i:nil="true" xmlns="" />
  <InnerException i:nil="true" xmlns="" />
  <HelpURL i:type="x:string" xmlns="">sample string 1</HelpURL>
  <StackTraceString i:nil="true" xmlns="" />
  <RemoteStackTraceString i:nil="true" xmlns="" />
  <RemoteStackIndex i:type="x:int" xmlns="">0</RemoteStackIndex>
  <ExceptionMethod i:nil="true" xmlns="" />
  <HResult i:type="x:int" xmlns="">3</HResult>
  <Source i:type="x:string" xmlns="">sample string 2</Source>
  <WatsonBuckets i:nil="true" xmlns="" />
</Exception>

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

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>