Internal database management

Display a list of databases

curl --location --request GET 'https://demo.scoring.one/api/internaldata/collections' \
--header 'Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

Get data

curl --location --request GET 'https://demo.scoring.one/api/internaldata/collections/<collection_name>' \
--header 'Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' 

Get a list of columns

curl --location --request GET 'https://demo.scoring.one/api/internaldata/columns/<collection_name>' \
--header 'Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

Get a list of indexes

curl --location --request GET 'https://demo.scoring.one/api/internaldata/indexes/<collection_name>' \
--header 'Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' 

Delete a table

curl -X DELETE 'https://demo.scoring.one/api/internaldata/collections/delete/<collection_name>' \--header 'Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

Load data to Scoring.One engine

curl -X POST 'https://demo.scoring.one/api/internaldata/collections/loadData/<collection_name>?fileName=titanic.csv&indexes=<zmienna1>,false;<zmienna2>,false' \
--header 'Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
--form file=@titanic.csv

Last updated