Skip to content

HJK181/search-insights-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

search-insights-demo

This is the sample application build in the blog series of Search|hub.

Get database count

curl -s localhost:8080/insights/count

Upload a CSV file

curl -s http://localhost:8080/csv/upload -F file=@/path_to_sample_application/sample_data.csv

List all uploaded CSV files

curl -s http://localhost:8080/csv/uploads

Get the content of a uploaded file

curl -s http://localhost:8080/csv/uploads/sample_data.csv

Upload the schema file of the example data

curl -s http://localhost:8080/csv/upload -F file=@/path_to_sample_application/sample_data.schema

Convert the CSV file to Parquet

curl -s -XPATCH http://localhost:8080/csv/convert/sample_data.csv

Upload the parquet file to S3

curl -s -XPATCH http://localhost:8080/csv/s3/sample_data.parquet

Create random data for the last X days

curl -s localhost:8080/csv/randomize/{X}

GET the CR. Please adjust from and to accordingly

curl -s "localhost:8080/insights/cr?from=2021-10-04&to=2021-10-11"

GET the CTR. Please adjust from and to accordingly

curl -s "localhost:8080/insights/ctr?from=2021-10-04&to=2021-10-11"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published