D&D Troops
Disclaimer
This is a School project for Java classes.
Build Status - Travis
Documentation
You can find documentation on WIKI.
MVC
- RUN:
mvn clean install && cd ddtroops-mvc && mvn tomcat7:run
- admin:
chuck@example.com/heslo
- user:
superman@example.com/heslo
- URL:
http://localhost:8080/pa165
REST
- RUN:
mvn clean install && cd ddtroops-rest && mvn tomcat7:run
- Endpoint ````
- Entity Hero
Create Hero:
curl -X POST -H "Content-Type: application/json" localhost:8080/pa165/rest/heroes --data '{"name":"Stalone","experience":60}'
List all:
curl localhost:8080/pa165/rest/heroes
Get by Id:
curl localhost:8080/pa165/rest/heroes/{id} # where id is hero id
Delete:
curl -X DELETE localhost:8080/pa165/rest/heroes/{id} # where id is hero id