Service for creating and utilizing test data pools via REST API.
cd ./bin/
java -jar datapool-service-<version>.jar
- Download demo data pool
curl https://raw.githubusercontent.com/Roman-Kislyy/datapool-spring/main/src/test/test.csv --output test.csv -k
- Upload file to local datapool service
curl -F 'file=@test.csv' "http://localhost:8080/api/v1/upload-csv-as-json?env=load&pool=demo_clients&override=true&delimiter=,"
- Get value from datapool service
curl "http://localhost:8080/api/v1/get-next-value?pool=demo_clients&locked=false" -s
- Docs htmlpreview
- Local You can open web documentaion everytime. Simple open http://localhost:8080/ where datapool has been started.
- Or open resourse
mvn clean verify
http://www.h2database.com/html/tutorial.html#using_server
https://spring.io/guides/gs/rest-service/
https://alexkosarev.name/2019/03/08/rest-api-with-spring/
https://www.baeldung.com/spring-boot-h2-database

