GET api/tables?departmentId={departmentId}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
departmentId | integer |
Default value is 1 |
Body Parameters
None.
Response Information
Resource Description
TableListResponseName | Description | Type | Additional information |
---|---|---|---|
Tables | Collection of TableDTO |
None. |
|
isSuccess | boolean |
None. |
|
message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Tables": [ { "Name": "sample string 1", "TicketId": 2, "IsTicketLocked": true }, { "Name": "sample string 1", "TicketId": 2, "IsTicketLocked": true } ], "isSuccess": true, "message": "sample string 2" }
text/html
Sample:
{"Tables":[{"Name":"sample string 1","TicketId":2,"IsTicketLocked":true},{"Name":"sample string 1","TicketId":2,"IsTicketLocked":true}],"isSuccess":true,"message":"sample string 2"}
application/xml, text/xml
Sample:
<TableListResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gregsys.WebApi.Models"> <isSuccess>true</isSuccess> <message>sample string 2</message> <Tables xmlns:d2p1="http://schemas.datacontract.org/2004/07/Gregsys.DTO"> <d2p1:TableDTO> <d2p1:IsTicketLocked>true</d2p1:IsTicketLocked> <d2p1:Name>sample string 1</d2p1:Name> <d2p1:TicketId>2</d2p1:TicketId> </d2p1:TableDTO> <d2p1:TableDTO> <d2p1:IsTicketLocked>true</d2p1:IsTicketLocked> <d2p1:Name>sample string 1</d2p1:Name> <d2p1:TicketId>2</d2p1:TicketId> </d2p1:TableDTO> </Tables> </TableListResponse>