Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.16 KB

README.md

File metadata and controls

32 lines (22 loc) · 1.16 KB

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"