Spring MVC/Spring Data/Spring Security/JPA(Hibernate)/HSQLDB/EhCache/Jackson/JUnit
git clone https://github.com/alexray-2016/topjava_graduate_project
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
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