login [email protected]
login [email protected]
login [email protected]
For windows use
Git Bash
curl -s http://127.0.0.1:8080
curl -s http://127.0.0.1:8080/100003
curl -s -X POST -d '{}' -H 'Content-Type:application/json;charset=UTF-8' http://localhost:8080/100003
curl -s -X POST -d '{"dateTime":"2020-01-11T10:30","description":"Update vote","restoran":100004}' -H 'Content-Type:application/json;charset=UTF-8' http://localhost:8080/100004
curl -s http://localhost:8080/api/v1/users
curl -s http://localhost:8080/api/v1/users/100001
curl -s -X DELETE http://localhost:8080/api/v1/users/100002
curl -s -X POST -d '{"name": "userTest","email":"[email protected]","password":"12345678","roles":["ROLE_USER"]}' -H 'Content-Type:application/json;charset=UTF-8' http://localhost:8080/api/v1/users/
curl -s -X PUT -d '{"name": "userTe","email":"[email protected]","password":"123456789","role":"ROLE_ADMIN"}' -H 'Content-Type: application/json' http://localhost:8080/api/v1/users/100002
curl -s http://localhost:8080/api/v1/restorans
curl -s http://localhost:8080/api/v1/restorans/100003
curl -s -X DELETE http://localhost:8080/api/v1/restorans/100004
curl -s -X POST -d '{"name":"Mandarin"}' -H 'Content-Type:application/json;charset=UTF-8' http://localhost:8080/api/v1/restorans/
curl -s -X PUT -d '{"name":"Grang"}' -H 'Content-Type:application/json;charset=UTF-8' http://localhost:8080/api/v1/restorans/100003
curl -s -v http://localhost:8080/topjava/rest/profile/meals/100008