POST api/Bookings

Request Information

URI Parameters

None.

Body Parameters

Booking
NameDescriptionTypeAdditional information
Id

integer

None.

countContainer

integer

None.

client

string

None.

Day

date

None.

NumBooking

string

None.

numReservation

integer

None.

Containers

Collection of Container

None.

DateofReservation

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "countContainer": 2,
  "client": "sample string 3",
  "Day": "2019-12-08T15:15:10.0333164+01:00",
  "NumBooking": "sample string 5",
  "numReservation": 6,
  "Containers": [
    {
      "$id": "2",
      "Id": 1,
      "numberContainer": "sample string 2",
      "Type": "sample string 3",
      "sousType": "sample string 4",
      "Plage": "2019-12-08T15:15:10.0333164+01:00",
      "Booking": {
        "$ref": "1"
      },
      "sousTypeEquip": "sample string 6"
    },
    {
      "$ref": "2"
    }
  ],
  "DateofReservation": "2019-12-08T15:15:10.0333164+01:00"
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Booking
NameDescriptionTypeAdditional information
Id

integer

None.

countContainer

integer

None.

client

string

None.

Day

date

None.

NumBooking

string

None.

numReservation

integer

None.

Containers

Collection of Container

None.

DateofReservation

date

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "countContainer": 2,
  "client": "sample string 3",
  "Day": "2019-12-08T15:15:10.0333164+01:00",
  "NumBooking": "sample string 5",
  "numReservation": 6,
  "Containers": [
    {
      "$id": "2",
      "Id": 1,
      "numberContainer": "sample string 2",
      "Type": "sample string 3",
      "sousType": "sample string 4",
      "Plage": "2019-12-08T15:15:10.0333164+01:00",
      "Booking": {
        "$ref": "1"
      },
      "sousTypeEquip": "sample string 6"
    },
    {
      "$ref": "2"
    }
  ],
  "DateofReservation": "2019-12-08T15:15:10.0333164+01:00"
}