PUT api/SuccessorSimulator

Request Information

URI Parameters

None.

Body Parameters

SimulationSuccesorData
NameDescriptionTypeAdditional information
Questions

Collection of QuestionsSuccessorData

None.

Request Formats

application/json, text/json

Sample:
{
  "Questions": [
    {
      "QuestionKey": "sample string 1",
      "Answers": [
        {
          "DecimalValue": 1.0,
          "StringValue": "sample string 2",
          "BoolValue": true
        },
        {
          "DecimalValue": 1.0,
          "StringValue": "sample string 2",
          "BoolValue": true
        }
      ]
    },
    {
      "QuestionKey": "sample string 1",
      "Answers": [
        {
          "DecimalValue": 1.0,
          "StringValue": "sample string 2",
          "BoolValue": true
        },
        {
          "DecimalValue": 1.0,
          "StringValue": "sample string 2",
          "BoolValue": true
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<SimulationSuccesorData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SkCo.SuccessorSimulator.Public.Entities">
  <Questions>
    <QuestionsSuccessorData>
      <Answers>
        <AnswersSuccessorData>
          <BoolValue>true</BoolValue>
          <DecimalValue>1</DecimalValue>
          <StringValue>sample string 2</StringValue>
        </AnswersSuccessorData>
        <AnswersSuccessorData>
          <BoolValue>true</BoolValue>
          <DecimalValue>1</DecimalValue>
          <StringValue>sample string 2</StringValue>
        </AnswersSuccessorData>
      </Answers>
      <QuestionKey>sample string 1</QuestionKey>
    </QuestionsSuccessorData>
    <QuestionsSuccessorData>
      <Answers>
        <AnswersSuccessorData>
          <BoolValue>true</BoolValue>
          <DecimalValue>1</DecimalValue>
          <StringValue>sample string 2</StringValue>
        </AnswersSuccessorData>
        <AnswersSuccessorData>
          <BoolValue>true</BoolValue>
          <DecimalValue>1</DecimalValue>
          <StringValue>sample string 2</StringValue>
        </AnswersSuccessorData>
      </Answers>
      <QuestionKey>sample string 1</QuestionKey>
    </QuestionsSuccessorData>
  </Questions>
</SimulationSuccesorData>

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

Response Information

Resource Description

ResultSuccessorData
NameDescriptionTypeAdditional information
SimulationId

string

None.

SimulationResult

Collection of ResultRecords

None.

Response Formats

application/json, text/json

Sample:
{
  "SimulationId": "sample string 1",
  "SimulationResult": [
    {
      "Name": "sample string 1",
      "Amount": 2.0,
      "OccasionalEarnings": 3.0,
      "BaseTaxable": 4.0,
      "Tax": 5.0,
      "AmountReceiving": 6.0,
      "IsProduct": true,
      "LabelGraph": "sample string 8"
    },
    {
      "Name": "sample string 1",
      "Amount": 2.0,
      "OccasionalEarnings": 3.0,
      "BaseTaxable": 4.0,
      "Tax": 5.0,
      "AmountReceiving": 6.0,
      "IsProduct": true,
      "LabelGraph": "sample string 8"
    }
  ]
}

application/xml, text/xml

Sample:
<ResultSuccessorData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SkCo.SuccessorSimulator.Public.Entities">
  <SimulationId>sample string 1</SimulationId>
  <SimulationResult>
    <ResultRecords>
      <Amount>2</Amount>
      <AmountReceiving>6</AmountReceiving>
      <BaseTaxable>4</BaseTaxable>
      <IsProduct>true</IsProduct>
      <LabelGraph>sample string 8</LabelGraph>
      <Name>sample string 1</Name>
      <OccasionalEarnings>3</OccasionalEarnings>
      <Tax>5</Tax>
    </ResultRecords>
    <ResultRecords>
      <Amount>2</Amount>
      <AmountReceiving>6</AmountReceiving>
      <BaseTaxable>4</BaseTaxable>
      <IsProduct>true</IsProduct>
      <LabelGraph>sample string 8</LabelGraph>
      <Name>sample string 1</Name>
      <OccasionalEarnings>3</OccasionalEarnings>
      <Tax>5</Tax>
    </ResultRecords>
  </SimulationResult>
</ResultSuccessorData>