POST api/Reporting/SendExtraHours

Request Information

URI Parameters

None.

Body Parameters

ParamsSendExtraHours
NameDescriptionTypeAdditional information
token

string

None.

key

string

None.

aHourData

Collection of aHour

None.

Request Formats

application/json, text/json

Sample:
{
  "token": "sample string 1",
  "key": "sample string 2",
  "aHourData": [
    {
      "id_agreement_day": 1,
      "nn_extra_hour": 2.0
    },
    {
      "id_agreement_day": 1,
      "nn_extra_hour": 2.0
    }
  ]
}

application/xml, text/xml

Sample:
<ParamsSendExtraHours xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WSReportix.Models">
  <aHourData>
    <aHour>
      <id_agreement_day>1</id_agreement_day>
      <nn_extra_hour>2</nn_extra_hour>
    </aHour>
    <aHour>
      <id_agreement_day>1</id_agreement_day>
      <nn_extra_hour>2</nn_extra_hour>
    </aHour>
  </aHourData>
  <key>sample string 2</key>
  <token>sample string 1</token>
</ParamsSendExtraHours>

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

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>