GET api/GuestPreferences/{id}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
PreferencesResponseName | Description | Type | Additional information |
---|---|---|---|
GuestHubID | globally unique identifier |
None. |
|
FirstName | string |
None. |
|
LastName | string |
None. |
|
PreferencesIDs | Collection of integer |
None. |
|
Preferences | Collection of PreferenceTypeGuest |
None. |
|
Reservation | LastReservation |
None. |
Response Formats
application/json, text/json
Sample:
{ "GuestHubID": "52e81e65-af0c-4240-8db6-5e0146c6b788", "FirstName": "sample string 2", "LastName": "sample string 3", "PreferencesIDs": [ 1, 2 ], "Preferences": [ { "PreferenceTypeID": 1, "PreferenceTypeName": "sample string 2", "Preferences": [ { "PreferenceID": 1, "Preference": "sample string 2", "Value": "sample string 3" }, { "PreferenceID": 1, "Preference": "sample string 2", "Value": "sample string 3" } ] }, { "PreferenceTypeID": 1, "PreferenceTypeName": "sample string 2", "Preferences": [ { "PreferenceID": 1, "Preference": "sample string 2", "Value": "sample string 3" }, { "PreferenceID": 1, "Preference": "sample string 2", "Value": "sample string 3" } ] } ], "Reservation": { "ReservationID": 1, "Resort": "sample string 2", "CRS": "sample string 3", "ArrivalDate": "2025-03-28T14:16:33.7467408-06:00", "Nights": 5, "Adults": 6, "Children": 7, "Infants": 8 } }
application/xml, text/xml
Sample:
<GuestViewModel.PreferencesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ePlat.Models.ViewModels"> <FirstName>sample string 2</FirstName> <GuestHubID>52e81e65-af0c-4240-8db6-5e0146c6b788</GuestHubID> <LastName>sample string 3</LastName> <Preferences> <GuestViewModel.Preferences.PreferenceTypeGuest> <PreferenceTypeID>1</PreferenceTypeID> <PreferenceTypeName>sample string 2</PreferenceTypeName> <Preferences> <GuestViewModel.Preferences.PreferenceItemValue> <Preference>sample string 2</Preference> <PreferenceID>1</PreferenceID> <Value>sample string 3</Value> </GuestViewModel.Preferences.PreferenceItemValue> <GuestViewModel.Preferences.PreferenceItemValue> <Preference>sample string 2</Preference> <PreferenceID>1</PreferenceID> <Value>sample string 3</Value> </GuestViewModel.Preferences.PreferenceItemValue> </Preferences> </GuestViewModel.Preferences.PreferenceTypeGuest> <GuestViewModel.Preferences.PreferenceTypeGuest> <PreferenceTypeID>1</PreferenceTypeID> <PreferenceTypeName>sample string 2</PreferenceTypeName> <Preferences> <GuestViewModel.Preferences.PreferenceItemValue> <Preference>sample string 2</Preference> <PreferenceID>1</PreferenceID> <Value>sample string 3</Value> </GuestViewModel.Preferences.PreferenceItemValue> <GuestViewModel.Preferences.PreferenceItemValue> <Preference>sample string 2</Preference> <PreferenceID>1</PreferenceID> <Value>sample string 3</Value> </GuestViewModel.Preferences.PreferenceItemValue> </Preferences> </GuestViewModel.Preferences.PreferenceTypeGuest> </Preferences> <PreferencesIDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </PreferencesIDs> <Reservation> <Adults>6</Adults> <ArrivalDate>2025-03-28T14:16:33.7467408-06:00</ArrivalDate> <CRS>sample string 3</CRS> <Children>7</Children> <Infants>8</Infants> <Nights>5</Nights> <ReservationID>1</ReservationID> <Resort>sample string 2</Resort> </Reservation> </GuestViewModel.PreferencesResponse>