- JDK 8
- Gradle 7
./gradlew bootRunStarts at http://localhost:8083.
./gradlew testAdd to int list
curl -X POST localhost:8083/int -H 'Content-type:application/json' -d '42'
curl -X POST localhost:8083/int -H 'Content-type:application/json' -d '38'Get i-th item from int list
curl -X GET localhost:8083/int/<i>Remove i-th item from int list
curl -X DELETE localhost:8083/int/<i>Add to string list
curl -X POST localhost:8083/string -H 'Content-type:application/json' -d 'foo'
curl -X POST localhost:8083/string -H 'Content-type:application/json' -d 'bar'Get i-th item from string list
curl -X GET localhost:8083/string/<i>Remove i-th item from string list
curl -X DELETE localhost:8083/string/<i>Not user friendly. Casting, index out of bounds, etc. exceptions not handled. No user input validation.