POST api/History_Test/Add_Result

Добавление результатов в историю

Request Information

URI Parameters

None.

Body Parameters

Add_history
NameDescriptionTypeAdditional information
spend_time

Потраченное время, объязательный параметр

time interval

Required

answers

Ответы, объязательный параметр

Collection of Answers

Required

Request Formats

application/json, text/json

Sample:
{
  "spend_time": "00:00:00.1234567",
  "answers": [
    {
      "id": 1,
      "code1": 1,
      "code2": 1,
      "code3": 1,
      "is_five": true
    },
    {
      "id": 1,
      "code1": 1,
      "code2": 1,
      "code3": 1,
      "is_five": true
    }
  ]
}

application/xml, text/xml

Sample:
<Add_history xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api.Models">
  <answers>
    <Answers>
      <code1>1</code1>
      <code2>1</code2>
      <code3>1</code3>
      <id>1</id>
      <is_five>true</is_five>
    </Answers>
    <Answers>
      <code1>1</code1>
      <code2>1</code2>
      <code3>1</code3>
      <id>1</id>
      <is_five>true</is_five>
    </Answers>
  </answers>
  <spend_time>PT0.1234567S</spend_time>
</Add_history>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseModel
NameDescriptionTypeAdditional information
success

Успешность запроса true, false

boolean

None.

Errors

Ошибка запроса

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "Errors": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<ResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api.Models">
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Errors>
  <success>true</success>
</ResponseModel>