mvn clean install
cd plpm-web
mvn cargo:run
Website will be available at http://localhost:8080/pa165/
cd plpm-rest
mvn cargo:run
curl --request POST --url http://localhost:8080/pa165/rest/pokemons/create --header "Content-Type:application/json" --data "{\"name\":\"Pokemon\",\"nickname\":\"Pocky\",\"type\":\"GHOST\"}"
curl --request DELETE --url http://localhost:8080/pa165/rest/pokemons/delete/2
curl --request PUT --url http://localhost:8080/pa165/rest/pokemons/1/change-level/2
curl --request GET --url http://localhost:8080/pa165/rest/pokemons/1
curl --request GET --url http://localhost:8080/pa165/rest/pokemons/get-by-name/Bulbasaur
curl --request GET --url http://localhost:8080/pa165/rest/pokemons/get-by-nickname/Bulba
curl --request GET --url http://localhost:8080/pa165/rest/pokemons/get-by-trainer/1
curl --request GET --url http://localhost:8080/pa165/rest/pokemons
nickname: admin
password: admin
nickname: user
password: user