Skip to content

andrewmerc21/datapool-spring

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

datapool-spring

Service for creating and utilizing test data pools via REST API.

How it's work

Start service

cd ./bin/

java -jar datapool-service-<version>.jar

Use it

  • 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

Configure

bin/application.properties

Documentation

Build with maven

mvn clean verify

Useful links H2 DB

http://www.h2database.com/html/tutorial.html#using_server

https://www.tutorialspoint.com/h2_database/h2_database_create.htm

Useful links Spring REST

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

About

Service for rest api load testing data pools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 71.0%
  • HTML 28.6%
  • Shell 0.4%