From f8cb2a4d3a5fdb56aeeeeb087afa939762637149 Mon Sep 17 00:00:00 2001 From: Emile Date: Fri, 15 Mar 2019 20:29:28 +0100 Subject: created a simple frontend for the db-controller backend --- testInsertStarSingle.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 testInsertStarSingle.sh (limited to 'testInsertStarSingle.sh') diff --git a/testInsertStarSingle.sh b/testInsertStarSingle.sh new file mode 100755 index 0000000..36c94a2 --- /dev/null +++ b/testInsertStarSingle.sh @@ -0,0 +1,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" -- cgit 1.4.1