A JAX-RS with Couchbase demo
A JAX-RS sample using Tomee implementation.
To run:
mvn clean package tomee:exec -DskipTests
java -jar target/heroes-1.0-SNAPSHOT-exec.jar
- GET http://localhost:8080/heroes/resource/heroes/
- DELETE http://localhost:8080/heroes/resource/heroes/{id}
- POST http://localhost:8080/heroes/resource/heroes/
- PUT http://localhost:8080/heroes/resource/heroes/{id}
- GET http://localhost:8080/heroes/resource/heroes/{id}
- GET http://localhost:8080/heroes/resource/heroes/seniors/{age}
- GET http://localhost:8080/heroes/resource/heroes/youngs/{age}
- GET http://localhost:8080/heroes/resource/heroes/{id}
sh heroes.sh