Запуск проекта командой mvn jetty:run
curl --request POST \
--url http://localhost:8080/restaurants \
--header 'Authorization: Basic YWRtaW5AbHVuY2guY29tOjEyMzQ1' \
--header 'Content-Type: application/json' \
--data '{"name":"Sashlik","address":"Palatka"}'
curl --request GET \
--url http://localhost:8080/restaurants \
--header 'Authorization: Basic YWRtaW5AbHVuY2guY29tOjEyMzQ1'
curl --request PUT \
--url http://localhost:8080/restaurants/100005 \
--header 'Authorization: Basic YWRtaW5AbHVuY2guY29tOjEyMzQ1' \
--header 'Content-Type: application/json' \
--data '{"id":100005,"name":"MVC Update","address":"Raduga1"}'
curl --request DELETE \
--url http://localhost:8080/restaurants/100005 \
--header 'Authorization: Basic YWRtaW5AbHVuY2guY29tOjEyMzQ1'
curl --request GET \
--url http://localhost:8080/restaurants/100004 \
--header 'Authorization: Basic YWRtaW5AbHVuY2guY29tOjEyMzQ1'
curl --request POST \
--url http://localhost:8080/lunches \
--header 'Authorization: Basic YWRtaW5AbHVuY2guY29tOjEyMzQ1' \
--header 'Content-Type: application/json' \
--data '{"description":"Gamburger","price":45.0,"date":[2018,1,21],"restaurantId":100003}'
curl --request GET \
--url http://localhost:8080/lunches \
--header 'Authorization: Basic YWRtaW5AbHVuY2guY29tOjEyMzQ1'
curl --request PUT \
--url http://localhost:8080/lunches/100006 \
--header 'Authorization: Basic YWRtaW5AbHVuY2guY29tOjEyMzQ1' \
--header 'Content-Type: application/json' \
--data '{"id":100006,"description":"Voper2","price":120.0,"date":[2018,1,21],"restaurantId":100003}'
curl --request DELETE \
--url http://localhost:8080/lunches/100007 \
--header 'Authorization: Basic YWRtaW5AbHVuY2guY29tOjEyMzQ1'
curl --request GET \
--url http://localhost:8080/lunches/100006 \
--header 'Authorization: Basic YWRtaW5AbHVuY2guY29tOjEyMzQ1'
curl --request GET \
--url http://localhost:8080/vote \
--header 'Authorization: Basic YWRtaW5AbHVuY2guY29tOjEyMzQ1'
curl --request POST \
--url http://localhost:8080/vote/100006 \
--header 'Authorization: Basic dXNlckBsdW5jaC5jb206cGFzcw=='
Тоже самое но в postman