about summary refs log tree commit diff
path: root/testInsertStarSingle.sh
blob: 36c94a23a4e992c03957ed365d5ca006d785a979 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash

echo "Recreating the tables..."
curl -X POST http://localhost:8081/createNodesTable                                                                                
curl -X POST http://localhost:8081/createStarsTable                                                                                
echo "Done"

echo "Deleting preexisting tables..."
curl -X POST http://localhost:8081/deleteStars
curl -X POST http://localhost:8081/deleteNodes
echo "Done"

echo "Inserting all stars from teststars.csv..."
curl -X POST --data "filename=100" http://localhost:8081/insertStarList
echo "Done"

echo "Inserting a list of stars..."
echo "Done"

echo "Getting the forest representation of the tree..."
curl -X GET http://localhost:8081/genForestTree?index=1
echo "Done"

echo "Getting a list of all stars..."
curl -X GET http://localhost:8081/starslist/csv                                                                                    
echo "Done"