POST api/opentable

open table use number of table

Request Information

URI Parameters

None.

Body Parameters

{"number_table":"","user_id":"","id_branch":"","number_customer":"","star_table":""}

table_data
NameDescriptionTypeAdditional information
user_id

integer

None.

number_table

integer

None.

number_customer

integer

None.

star_table

integer

None.

id_branch

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "user_id": 1,
  "number_table": 2,
  "number_customer": 3,
  "star_table": 4,
  "id_branch": 5
}

text/xml

Sample:
<table_data xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/restaurant_api">
  <id_branch>5</id_branch>
  <number_customer>3</number_customer>
  <number_table>2</number_table>
  <star_table>4</star_table>
  <user_id>1</user_id>
</table_data>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

{"data" [],"rowcount": 1,"status": true,"msg_error": ""}

outdata
NameDescriptionTypeAdditional information
data

DataTable

None.

rowcount

if get data then return count row else return the id row affected

integer

None.

status

boolean

None.

msg_error

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": null,
  "rowcount": 1,
  "status": true,
  "msg_error": "sample string 3"
}

text/xml

Sample:
<outdata xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/restaurant_api">
  <data i:nil="true" />
  <msg_error>sample string 3</msg_error>
  <rowcount>1</rowcount>
  <status>true</status>
</outdata>