POST api/Observed/SaveObserved
Request Information
URI Parameters
None.
Body Parameters
Oberved| Name | Description | Type | Additional information |
|---|---|---|---|
| beerTables | Collection of BeerTable |
None. |
|
| draughtMachineQuantity | Collection of DraughtMachineQuantity |
None. |
|
| pocId | string |
None. |
|
| openingHour | string |
None. |
|
| closingHour | string |
None. |
|
| segmentation | integer |
None. |
|
| numberOfFloors | integer |
None. |
|
| cuisineStyle | integer |
None. |
|
| cuisineType | integer |
None. |
|
| numberOfFridges | integer |
None. |
|
| totalTables | integer |
None. |
|
| totalSeats | integer |
None. |
|
| nonBeerTables | integer |
None. |
|
| totalVIPRooms | integer |
None. |
|
| activeVIPRooms | integer |
None. |
|
| nonBeerConsumers | integer |
None. |
|
| maleConsumers | integer |
None. |
|
| activeTables | integer |
None. |
|
| overFourConsumerTables | integer |
None. |
|
| familyTables | integer |
None. |
|
| totalConsumers | integer |
None. |
|
| overThirtyFiveConsumers | integer |
None. |
|
| user | string |
None. |
|
| image | Collection of string |
None. |
Request Formats
application/json, text/json
Sample:
{
"beerTables": [
{
"brand": "sample string 1",
"quantity": 2
},
{
"brand": "sample string 1",
"quantity": 2
}
],
"draughtMachineQuantity": [
{
"brand": "sample string 1",
"quantity": 2
},
{
"brand": "sample string 1",
"quantity": 2
}
],
"pocId": "sample string 1",
"openingHour": "sample string 2",
"closingHour": "sample string 3",
"segmentation": 1,
"numberOfFloors": 1,
"cuisineStyle": 1,
"cuisineType": 1,
"numberOfFridges": 1,
"totalTables": 1,
"totalSeats": 1,
"nonBeerTables": 1,
"totalVIPRooms": 1,
"activeVIPRooms": 1,
"nonBeerConsumers": 1,
"maleConsumers": 1,
"activeTables": 1,
"overFourConsumerTables": 1,
"familyTables": 1,
"totalConsumers": 1,
"overThirtyFiveConsumers": 1,
"user": "sample string 4",
"image": [
"sample string 1",
"sample string 2"
]
}
application/xml, text/xml
Sample:
<ObservedController.Oberved xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Controllers">
<activeTables>1</activeTables>
<activeVIPRooms>1</activeVIPRooms>
<beerTables>
<ObservedController.BeerTable>
<brand>sample string 1</brand>
<quantity>2</quantity>
</ObservedController.BeerTable>
<ObservedController.BeerTable>
<brand>sample string 1</brand>
<quantity>2</quantity>
</ObservedController.BeerTable>
</beerTables>
<closingHour>sample string 3</closingHour>
<cuisineStyle>1</cuisineStyle>
<cuisineType>1</cuisineType>
<draughtMachineQuantity>
<ObservedController.DraughtMachineQuantity>
<brand>sample string 1</brand>
<quantity>2</quantity>
</ObservedController.DraughtMachineQuantity>
<ObservedController.DraughtMachineQuantity>
<brand>sample string 1</brand>
<quantity>2</quantity>
</ObservedController.DraughtMachineQuantity>
</draughtMachineQuantity>
<familyTables>1</familyTables>
<image xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</image>
<maleConsumers>1</maleConsumers>
<nonBeerConsumers>1</nonBeerConsumers>
<nonBeerTables>1</nonBeerTables>
<numberOfFloors>1</numberOfFloors>
<numberOfFridges>1</numberOfFridges>
<openingHour>sample string 2</openingHour>
<overFourConsumerTables>1</overFourConsumerTables>
<overThirtyFiveConsumers>1</overThirtyFiveConsumers>
<pocId>sample string 1</pocId>
<segmentation>1</segmentation>
<totalConsumers>1</totalConsumers>
<totalSeats>1</totalSeats>
<totalTables>1</totalTables>
<totalVIPRooms>1</totalVIPRooms>
<user>sample string 4</user>
</ObservedController.Oberved>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
API_Response| Name | Description | Type | Additional information |
|---|---|---|---|
| response_code | string |
None. |
|
| response_text | string |
None. |
|
| response_description | string |
None. |
|
| transactionId | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"response_code": "sample string 1",
"response_text": "sample string 2",
"response_description": "sample string 3",
"transactionId": "sample string 4"
}
application/xml, text/xml
Sample:
<API_Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models"> <response_code>sample string 1</response_code> <response_description>sample string 3</response_description> <response_text>sample string 2</response_text> <transactionId>sample string 4</transactionId> </API_Response>