GET API/ItemCreation/GetAllItem/{Category}/{HotelId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| Category | string |
Required |
|
| HotelId | integer |
Required |
Body Parameters
ItemMaster| Name | Description | Type | Additional information |
|---|---|---|---|
| HotelId | integer |
None. |
|
| Type | string |
None. |
|
| Id | integer |
None. |
|
| Category | string |
None. |
|
| ItemList | Collection of ItemList |
None. |
|
| List1 | Collection of LOne |
None. |
|
| UserId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"HotelId": 1,
"Type": "sample string 2",
"Id": 3,
"Category": "sample string 4",
"ItemList": [
{
"ItemName": "sample string 1",
"ItemPrice": 2.0,
"ShortName": "sample string 3",
"UserId": 4,
"Id": 5
},
{
"ItemName": "sample string 1",
"ItemPrice": 2.0,
"ShortName": "sample string 3",
"UserId": 4,
"Id": 5
}
],
"List1": [
{
"ShortName": "sample string 1",
"ItemName": "sample string 2",
"ItemPrice": 3.0,
"Id": 4
},
{
"ShortName": "sample string 1",
"ItemName": "sample string 2",
"ItemPrice": 3.0,
"Id": 4
}
],
"UserId": 5
}
application/xml, text/xml
Sample:
<ItemMaster xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HMSApi.Models">
<Category>sample string 4</Category>
<HotelId>1</HotelId>
<Id>3</Id>
<ItemList>
<ItemList>
<Id>5</Id>
<ItemName>sample string 1</ItemName>
<ItemPrice>2</ItemPrice>
<ShortName>sample string 3</ShortName>
<UserId>4</UserId>
</ItemList>
<ItemList>
<Id>5</Id>
<ItemName>sample string 1</ItemName>
<ItemPrice>2</ItemPrice>
<ShortName>sample string 3</ShortName>
<UserId>4</UserId>
</ItemList>
</ItemList>
<List1>
<LOne>
<Id>4</Id>
<ItemName>sample string 2</ItemName>
<ItemPrice>3</ItemPrice>
<ShortName>sample string 1</ShortName>
</LOne>
<LOne>
<Id>4</Id>
<ItemName>sample string 2</ItemName>
<ItemPrice>3</ItemPrice>
<ShortName>sample string 1</ShortName>
</LOne>
</List1>
<Type>sample string 2</Type>
<UserId>5</UserId>
</ItemMaster>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of ItemMaster| Name | Description | Type | Additional information |
|---|---|---|---|
| HotelId | integer |
None. |
|
| Type | string |
None. |
|
| Id | integer |
None. |
|
| Category | string |
None. |
|
| ItemList | Collection of ItemList |
None. |
|
| List1 | Collection of LOne |
None. |
|
| UserId | integer |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"HotelId": 1,
"Type": "sample string 2",
"Id": 3,
"Category": "sample string 4",
"ItemList": [
{
"ItemName": "sample string 1",
"ItemPrice": 2.0,
"ShortName": "sample string 3",
"UserId": 4,
"Id": 5
},
{
"ItemName": "sample string 1",
"ItemPrice": 2.0,
"ShortName": "sample string 3",
"UserId": 4,
"Id": 5
}
],
"List1": [
{
"ShortName": "sample string 1",
"ItemName": "sample string 2",
"ItemPrice": 3.0,
"Id": 4
},
{
"ShortName": "sample string 1",
"ItemName": "sample string 2",
"ItemPrice": 3.0,
"Id": 4
}
],
"UserId": 5
},
{
"HotelId": 1,
"Type": "sample string 2",
"Id": 3,
"Category": "sample string 4",
"ItemList": [
{
"ItemName": "sample string 1",
"ItemPrice": 2.0,
"ShortName": "sample string 3",
"UserId": 4,
"Id": 5
},
{
"ItemName": "sample string 1",
"ItemPrice": 2.0,
"ShortName": "sample string 3",
"UserId": 4,
"Id": 5
}
],
"List1": [
{
"ShortName": "sample string 1",
"ItemName": "sample string 2",
"ItemPrice": 3.0,
"Id": 4
},
{
"ShortName": "sample string 1",
"ItemName": "sample string 2",
"ItemPrice": 3.0,
"Id": 4
}
],
"UserId": 5
}
]
application/xml, text/xml
Sample:
<ArrayOfItemMaster xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HMSApi.Models">
<ItemMaster>
<Category>sample string 4</Category>
<HotelId>1</HotelId>
<Id>3</Id>
<ItemList>
<ItemList>
<Id>5</Id>
<ItemName>sample string 1</ItemName>
<ItemPrice>2</ItemPrice>
<ShortName>sample string 3</ShortName>
<UserId>4</UserId>
</ItemList>
<ItemList>
<Id>5</Id>
<ItemName>sample string 1</ItemName>
<ItemPrice>2</ItemPrice>
<ShortName>sample string 3</ShortName>
<UserId>4</UserId>
</ItemList>
</ItemList>
<List1>
<LOne>
<Id>4</Id>
<ItemName>sample string 2</ItemName>
<ItemPrice>3</ItemPrice>
<ShortName>sample string 1</ShortName>
</LOne>
<LOne>
<Id>4</Id>
<ItemName>sample string 2</ItemName>
<ItemPrice>3</ItemPrice>
<ShortName>sample string 1</ShortName>
</LOne>
</List1>
<Type>sample string 2</Type>
<UserId>5</UserId>
</ItemMaster>
<ItemMaster>
<Category>sample string 4</Category>
<HotelId>1</HotelId>
<Id>3</Id>
<ItemList>
<ItemList>
<Id>5</Id>
<ItemName>sample string 1</ItemName>
<ItemPrice>2</ItemPrice>
<ShortName>sample string 3</ShortName>
<UserId>4</UserId>
</ItemList>
<ItemList>
<Id>5</Id>
<ItemName>sample string 1</ItemName>
<ItemPrice>2</ItemPrice>
<ShortName>sample string 3</ShortName>
<UserId>4</UserId>
</ItemList>
</ItemList>
<List1>
<LOne>
<Id>4</Id>
<ItemName>sample string 2</ItemName>
<ItemPrice>3</ItemPrice>
<ShortName>sample string 1</ShortName>
</LOne>
<LOne>
<Id>4</Id>
<ItemName>sample string 2</ItemName>
<ItemPrice>3</ItemPrice>
<ShortName>sample string 1</ShortName>
</LOne>
</List1>
<Type>sample string 2</Type>
<UserId>5</UserId>
</ItemMaster>
</ArrayOfItemMaster>