Creates a new booking.
{
"restaurantId": 0, Add Id of restaurant you want to book
"requestedTime": "2024-09-04T21:39:36.743Z", Date and time when the booking should start (bookings last 2h)
"userId": 0, Add Id of user that's making the booking
"nrOfPeople": 0, Declare how many people the booking is intended for (not currently taken into account)
"requests": "string" Specify any dietary requests or other.
}
Lists all bookings in system
Lists all bookings at certain restaurant. (not currently in order of time)
shows booking using bookingId.
Updates booking info using bookings Id.
Deletes booking using bookings id
Creates a new Menu using restaurant Id.
{
"name": "string", <- Name of menu
"restaurantId": 0 <- Id of restaurant where menu is served
}
Lists all Menus at restaurant
Lists all menuitems of a menu at a restaurant using restaurants id and menu id.
Updates a menu at a restaurant using restaurantId and menuId.
{
"id": 0, <- Id of menu
"name": "string" <- New name of menu
}
Deletes menu at restaurant using restaurant id and menu id.
Prints menuitem using restaurant id, menu id and menuitem id.
Creates a new menuitem using restaurants id and menu id.
{
"name": "string", <- Mame of dish/drink/item on menu
"category": "string", <- Subcategory if any (for example soup, drink..)
"description": "string", <- Description of content
"amountAvaliable": 0 <- Amount of dishes made (not currently in use)
}
Creates new restaurant
{
"name": "string", <- Name of restaurant
"phoneNumber": "string", <- Phonenumber
"email": "string", <- Email
"address": "string", <- Full Address
"description": "string" <- Description of restaurant
}
Lists all avaliable restaurants info
Prints info of restaurant using restaurant id.
Updates restaurantinfo using restaurants id. All fields will be replaced.
{
"id": 0, <- Id of restaurant to update
"name": "string", <- Name of restaurant
"phoneNumber": "string", <- Phonenumber
"email": "string", <- Email
"address": "string", <- Full Address
"description": "string" <- Description of restaurant
}
Deletes restaurant using restaurant id.
Creates new table at restaurant using restaurant id.
{
"restaurantId": 0, <- Enter id of restaurant
"nrOfSeats": 0 <- Max amount of seats at table (Not currently in use)
}
List all tables at restaurant using restaurant id.
Print info about specific table at restaurant using restaurant id and table id.
Update info about table at restaurant using restaurant id and table id
{
"tableId": 0, <- Id of table to update
"nrOfSeats": 0 <- Max amount of number of seats at table (Not currently in use)
}
Delete table at restaurant using restaurant id and table id.
Creates a new user
{
"name": "string", <- Name of user
"email": "string", <- Email of user
"phoneNumber": "string" <- Phonenumber of user
}
Lists all users in system
Prints info about user using user id.
Update userinfo using user id.
{
"id": 0, <- Id of user
"name": "string", <- Name of user
"email": "string", <- Email of user
"phoneNumber": "string" <- Phonenumber of user
}
Deletes user using user id.