POST bkn/testBooking

Request Information

URI Parameters

None.

Body Parameters

DTO_BookingInfo
NameDescriptionTypeAdditional information
dataInizio

date

None.

dataFine

date

None.

cliente

DTO_bookingCustomer

None.

Request Formats

application/json, text/json

Sample:
{
  "dataInizio": "2026-01-22T13:24:53.4584006+01:00",
  "dataFine": "2026-01-22T13:24:53.4584006+01:00",
  "cliente": {
    "nome": "sample string 1",
    "cognome": "sample string 2",
    "sex": "sample string 3",
    "res_country": "sample string 4",
    "res_province": "sample string 5",
    "res_municipality": "sample string 6",
    "fiscal_code": "sample string 7",
    "doc_type": "sample string 8",
    "birth_country": "sample string 9",
    "birth_date": "2026-01-22T13:24:53.4584006+01:00",
    "birth_year": 1,
    "contact_mobile_1": "sample string 11",
    "contact_email_1": "sample string 12"
  }
}

application/xml, text/xml

Sample:
<DTO_BookingInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IdaWebApi.Areas.Booking.Model">
  <cliente>
    <birth_country>sample string 9</birth_country>
    <birth_date>2026-01-22T13:24:53.4584006+01:00</birth_date>
    <birth_year>1</birth_year>
    <contact_email_1>sample string 12</contact_email_1>
    <contact_mobile_1>sample string 11</contact_mobile_1>
    <doc_type>sample string 8</doc_type>
    <fiscal_code>sample string 7</fiscal_code>
    <name>sample string 1</name>
    <res_country>sample string 4</res_country>
    <res_municipality>sample string 6</res_municipality>
    <res_province>sample string 5</res_province>
    <sex>sample string 3</sex>
    <surname>sample string 2</surname>
  </cliente>
  <date_from>2026-01-22T13:24:53.4584006+01:00</date_from>
  <date_to>2026-01-22T13:24:53.4584006+01:00</date_to>
  <fullName>sample string 3</fullName>
  <id_structure>1</id_structure>
</DTO_BookingInfo>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.