GET eco/booking/availability?activityId={activityId}&pax={pax}&from={from}&to={to}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
activityId

integer

Required

pax

integer

Required

from

date

Required

to

date

Required

Body Parameters

None.

Response Information

Resource Description

Collection of AvailableDate
NameDescriptionTypeAdditional information
Date

date

None.

Sessions

Collection of AvailableSession

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "date": "2024-06-14T19:35:43.01713+02:00",
    "sessions": [
      {
        "dayOfWeek": 1,
        "id": 2,
        "name": "sample string 3",
        "days": [
          {
            "day": 1,
            "resources": [
              {
                "capacity": 1,
                "fillCapacity": true,
                "id": 3
              },
              {
                "capacity": 1,
                "fillCapacity": true,
                "id": 3
              }
            ]
          },
          {
            "day": 1,
            "resources": [
              {
                "capacity": 1,
                "fillCapacity": true,
                "id": 3
              },
              {
                "capacity": 1,
                "fillCapacity": true,
                "id": 3
              }
            ]
          }
        ]
      },
      {
        "dayOfWeek": 1,
        "id": 2,
        "name": "sample string 3",
        "days": [
          {
            "day": 1,
            "resources": [
              {
                "capacity": 1,
                "fillCapacity": true,
                "id": 3
              },
              {
                "capacity": 1,
                "fillCapacity": true,
                "id": 3
              }
            ]
          },
          {
            "day": 1,
            "resources": [
              {
                "capacity": 1,
                "fillCapacity": true,
                "id": 3
              },
              {
                "capacity": 1,
                "fillCapacity": true,
                "id": 3
              }
            ]
          }
        ]
      }
    ]
  },
  {
    "date": "2024-06-14T19:35:43.01713+02:00",
    "sessions": [
      {
        "dayOfWeek": 1,
        "id": 2,
        "name": "sample string 3",
        "days": [
          {
            "day": 1,
            "resources": [
              {
                "capacity": 1,
                "fillCapacity": true,
                "id": 3
              },
              {
                "capacity": 1,
                "fillCapacity": true,
                "id": 3
              }
            ]
          },
          {
            "day": 1,
            "resources": [
              {
                "capacity": 1,
                "fillCapacity": true,
                "id": 3
              },
              {
                "capacity": 1,
                "fillCapacity": true,
                "id": 3
              }
            ]
          }
        ]
      },
      {
        "dayOfWeek": 1,
        "id": 2,
        "name": "sample string 3",
        "days": [
          {
            "day": 1,
            "resources": [
              {
                "capacity": 1,
                "fillCapacity": true,
                "id": 3
              },
              {
                "capacity": 1,
                "fillCapacity": true,
                "id": 3
              }
            ]
          },
          {
            "day": 1,
            "resources": [
              {
                "capacity": 1,
                "fillCapacity": true,
                "id": 3
              },
              {
                "capacity": 1,
                "fillCapacity": true,
                "id": 3
              }
            ]
          }
        ]
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfAvailableDate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/myREST.Models.Ecotourism.Bookings">
  <AvailableDate>
    <Date>2024-06-14T19:35:43.01713+02:00</Date>
    <Sessions>
      <AvailableSession>
        <DayOfWeek>1</DayOfWeek>
        <Days>
          <AvailableDay>
            <Day>1</Day>
            <Resources>
              <AvailableResource>
                <Capacity>1</Capacity>
                <FillCapacity>true</FillCapacity>
                <Id>3</Id>
              </AvailableResource>
              <AvailableResource>
                <Capacity>1</Capacity>
                <FillCapacity>true</FillCapacity>
                <Id>3</Id>
              </AvailableResource>
            </Resources>
          </AvailableDay>
          <AvailableDay>
            <Day>1</Day>
            <Resources>
              <AvailableResource>
                <Capacity>1</Capacity>
                <FillCapacity>true</FillCapacity>
                <Id>3</Id>
              </AvailableResource>
              <AvailableResource>
                <Capacity>1</Capacity>
                <FillCapacity>true</FillCapacity>
                <Id>3</Id>
              </AvailableResource>
            </Resources>
          </AvailableDay>
        </Days>
        <Id>2</Id>
        <Name>sample string 3</Name>
      </AvailableSession>
      <AvailableSession>
        <DayOfWeek>1</DayOfWeek>
        <Days>
          <AvailableDay>
            <Day>1</Day>
            <Resources>
              <AvailableResource>
                <Capacity>1</Capacity>
                <FillCapacity>true</FillCapacity>
                <Id>3</Id>
              </AvailableResource>
              <AvailableResource>
                <Capacity>1</Capacity>
                <FillCapacity>true</FillCapacity>
                <Id>3</Id>
              </AvailableResource>
            </Resources>
          </AvailableDay>
          <AvailableDay>
            <Day>1</Day>
            <Resources>
              <AvailableResource>
                <Capacity>1</Capacity>
                <FillCapacity>true</FillCapacity>
                <Id>3</Id>
              </AvailableResource>
              <AvailableResource>
                <Capacity>1</Capacity>
                <FillCapacity>true</FillCapacity>
                <Id>3</Id>
              </AvailableResource>
            </Resources>
          </AvailableDay>
        </Days>
        <Id>2</Id>
        <Name>sample string 3</Name>
      </AvailableSession>
    </Sessions>
  </AvailableDate>
  <AvailableDate>
    <Date>2024-06-14T19:35:43.01713+02:00</Date>
    <Sessions>
      <AvailableSession>
        <DayOfWeek>1</DayOfWeek>
        <Days>
          <AvailableDay>
            <Day>1</Day>
            <Resources>
              <AvailableResource>
                <Capacity>1</Capacity>
                <FillCapacity>true</FillCapacity>
                <Id>3</Id>
              </AvailableResource>
              <AvailableResource>
                <Capacity>1</Capacity>
                <FillCapacity>true</FillCapacity>
                <Id>3</Id>
              </AvailableResource>
            </Resources>
          </AvailableDay>
          <AvailableDay>
            <Day>1</Day>
            <Resources>
              <AvailableResource>
                <Capacity>1</Capacity>
                <FillCapacity>true</FillCapacity>
                <Id>3</Id>
              </AvailableResource>
              <AvailableResource>
                <Capacity>1</Capacity>
                <FillCapacity>true</FillCapacity>
                <Id>3</Id>
              </AvailableResource>
            </Resources>
          </AvailableDay>
        </Days>
        <Id>2</Id>
        <Name>sample string 3</Name>
      </AvailableSession>
      <AvailableSession>
        <DayOfWeek>1</DayOfWeek>
        <Days>
          <AvailableDay>
            <Day>1</Day>
            <Resources>
              <AvailableResource>
                <Capacity>1</Capacity>
                <FillCapacity>true</FillCapacity>
                <Id>3</Id>
              </AvailableResource>
              <AvailableResource>
                <Capacity>1</Capacity>
                <FillCapacity>true</FillCapacity>
                <Id>3</Id>
              </AvailableResource>
            </Resources>
          </AvailableDay>
          <AvailableDay>
            <Day>1</Day>
            <Resources>
              <AvailableResource>
                <Capacity>1</Capacity>
                <FillCapacity>true</FillCapacity>
                <Id>3</Id>
              </AvailableResource>
              <AvailableResource>
                <Capacity>1</Capacity>
                <FillCapacity>true</FillCapacity>
                <Id>3</Id>
              </AvailableResource>
            </Resources>
          </AvailableDay>
        </Days>
        <Id>2</Id>
        <Name>sample string 3</Name>
      </AvailableSession>
    </Sessions>
  </AvailableDate>
</ArrayOfAvailableDate>