GET api/UnitTypes/GetUnitTypesPerResort?resortID={resortID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
resortID

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of UnitType
NameDescriptionTypeAdditional information
UnitTypeID

integer

None.

Name

string

None.

Rooms

integer

None.

Bathrooms

decimal number

None.

MinStay

integer

None.

GrandCollection

boolean

None.

ResortID

integer

None.

ResortName

string

None.

PMID

integer

None.

PMName

string

None.

PropertyTypeID

integer

None.

PropertyTypeName

string

None.

MinimumAge

integer

None.

NumberOfActiveProperties

integer

None.

CollectionID

integer

None.

CollectionName

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "UnitTypeID": 1,
    "Name": "sample string 2",
    "Rooms": 3,
    "Bathrooms": 4.0,
    "MinStay": 5,
    "GrandCollection": true,
    "ResortID": 7,
    "ResortName": "sample string 8",
    "PMID": 9,
    "PMName": "sample string 10",
    "PropertyTypeID": 11,
    "PropertyTypeName": "sample string 12",
    "MinimumAge": 13,
    "NumberOfActiveProperties": 14,
    "CollectionID": 15,
    "CollectionName": "sample string 16"
  },
  {
    "UnitTypeID": 1,
    "Name": "sample string 2",
    "Rooms": 3,
    "Bathrooms": 4.0,
    "MinStay": 5,
    "GrandCollection": true,
    "ResortID": 7,
    "ResortName": "sample string 8",
    "PMID": 9,
    "PMName": "sample string 10",
    "PropertyTypeID": 11,
    "PropertyTypeName": "sample string 12",
    "MinimumAge": 13,
    "NumberOfActiveProperties": 14,
    "CollectionID": 15,
    "CollectionName": "sample string 16"
  }
]

application/xml, text/xml

Sample:
<ArrayOfUnitType xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <UnitType>
    <UnitTypeID>1</UnitTypeID>
    <Name>sample string 2</Name>
    <Rooms>3</Rooms>
    <Bathrooms>4</Bathrooms>
    <MinStay>5</MinStay>
    <GrandCollection>true</GrandCollection>
    <ResortID>7</ResortID>
    <ResortName>sample string 8</ResortName>
    <PMID>9</PMID>
    <PMName>sample string 10</PMName>
    <PropertyTypeID>11</PropertyTypeID>
    <PropertyTypeName>sample string 12</PropertyTypeName>
    <MinimumAge>13</MinimumAge>
    <NumberOfActiveProperties>14</NumberOfActiveProperties>
    <CollectionID>15</CollectionID>
    <CollectionName>sample string 16</CollectionName>
  </UnitType>
  <UnitType>
    <UnitTypeID>1</UnitTypeID>
    <Name>sample string 2</Name>
    <Rooms>3</Rooms>
    <Bathrooms>4</Bathrooms>
    <MinStay>5</MinStay>
    <GrandCollection>true</GrandCollection>
    <ResortID>7</ResortID>
    <ResortName>sample string 8</ResortName>
    <PMID>9</PMID>
    <PMName>sample string 10</PMName>
    <PropertyTypeID>11</PropertyTypeID>
    <PropertyTypeName>sample string 12</PropertyTypeName>
    <MinimumAge>13</MinimumAge>
    <NumberOfActiveProperties>14</NumberOfActiveProperties>
    <CollectionID>15</CollectionID>
    <CollectionName>sample string 16</CollectionName>
  </UnitType>
</ArrayOfUnitType>