Skip to content

iilkevych/restaurant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

restaurant

spring data security mvc

ERD

ERD

+ Trigger Before Update on VOTES. It signals SQLSTATE '45000' if update is executed after 11am. (Optimistic strategy).

+ ON DELETE CASCADE:

  • ACCOUNT_ROLES.USER_ID > ACCOUNTS.ID
  • MENUS.REST_ID > RESTAURANTS.ID
  • DISHES.MENU_ID > MENU.ID
  • VOTES.MENU_ID > MENU.ID
  • VOTES.ACCOUNT_ID > ACCOUNTS.ID

JSON API

/menus GET in-restaurantId out-List<Menu>
/menu POST in-Menu out-Status, DELETE in-menu out-Status
/top GET out-List<Menu>
/vote GET in-menuId out-Status
/restaurants GET out-List<Restaurant>
/restaurant POST in-Restaurant out-Status, DELETE in-RestaurandId out Status

#Notes

  • Create users using test AccountServiceTest
  • /login GET
  • put X-CSRF-TOKEN into request header to test API

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published