Skip to content

Latest commit

 

History

History
25 lines (23 loc) · 1.42 KB

File metadata and controls

25 lines (23 loc) · 1.42 KB

RESTFUL API SERVICE

Модель резервации столов
Table reservation model

Check in Live!

https://gelatinous-thirsty-option.glitch.me

Information about API

Set the database first!
Use GET:   /tables  to get all tables (sskey=admin)
         /tables/:num?sskey   to get table by number (sskey=admin)
Use POST:   /reserve?num&client&[order]  num - table number, client - client data, order - menu items(optional) to reserve table
       /database   to set database
Use DELETE:  /tables/[num]?[sskey]   num - table number to delete reservation
Use PUT:     /tables/[num]?sshkey&[order]   (sshkey=user *here should be generated key for each user)

изображение изображение post delete