Skip to content

Simple voting system for deciding where users will have lunch

Notifications You must be signed in to change notification settings

alexray-2016/topjava_graduate_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Voting system for deciding where to have lunch (REST only).

Implementation Stack:

Spring MVC/Spring Data/Spring Security/JPA(Hibernate)/HSQLDB/EhCache/Jackson/JUnit

Install:

git clone https://github.com/alexray-2016/topjava_graduate_project

For users:

GET /rest/profile/restaurants - get restaurants with menu for today
GET /rest/profile/vote - get today's user vote for current user
DELETE /rest/profile/vote - delete today's user vote for current user
PUT /rest/profile/vote - change today's user vote for current user
POST /rest/profile/vote - create today's user vote for current user

For admins:

GET /rest/admin/restaurants - get all restaurants
POST /rest/admin/restaurants - create new restaurant
GET /rest/admin/restaurants/{id} - get restaurant with id={id}
DELETE /rest/admin/restaurants/{id} - delete restaurant with id={id}

PUT /rest/admin/restaurants/{id} - update restaurant with id={id}
GET /rest/admin/dishes - get all dishes
POST /rest/admin/dishes - create new dish
GET /rest/admin/dishes/{id} - get dish with id={id}
DELETE /rest/admin/dishes/{id} - delete dish with id={id}
PUT /rest/admin/dishes/{id} - update dish with id={id}

GET /votes - get history of user votes
GET /votes?sort={asc}/{desc} - get history of user votes in descending or ascending order (default is descending)
GET /votes?date={date} - get history of user votes filtered by date (in format "yyyy-MM-dd")
GET /votes?restaurantId={id} - get history of user votes filtered by restaurant
GET /votes?userId={id} - get history of user votes filtered by user

About

Simple voting system for deciding where users will have lunch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages