From 563607809d993c9e496423829b1f93def22a4aac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Victor=20N=C3=A4slund?= Date: Sun, 13 Nov 2022 17:49:45 +0100 Subject: more stuff --- dev-run.sh | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) (limited to 'dev-run.sh') diff --git a/dev-run.sh b/dev-run.sh index df337d8..084e38b 100755 --- a/dev-run.sh +++ b/dev-run.sh @@ -12,47 +12,51 @@ docker-compose -f docker-compose.yml build sudo chown -R 101 data/mongodb_data docker-compose -f docker-compose.yml up -d -sleep 2 +sleep 3 echo echo -curl --data-binary @data/example_data_3.json http://localhost:8000/sc/v0 +curl -v --data-binary @data/example_data_3.json http://127.0.0.1:8000/sc/v0 echo echo -curl -X DELETE http://localhost:8000/sc/v0/63702570e004d2b0b2254d27 +curl -v -X DELETE http://127.0.0.1:8000/sc/v0/63702570e004d2b0b2254d27 echo echo -curl -X DELETE http://localhost:8000/sc/v0/63702570e004d2b0b2254d27 +curl -v -X DELETE http://127.0.0.1:8000/sc/v0/63702570e004d2b0b2254d27 echo echo -curl -d '{"search": {"port": {"$lt": 4}}}' -H 'Content-Type: application/json' http://localhost:8000/sc/v0/search +curl -v -d '{"search": {"port": {"$lt": 4}}}' -H 'Content-Type: application/json' http://127.0.0.1:8000/sc/v0/search echo echo -curl -d '{"search": {"port": 112}}' -H 'Content-Type: application/json' http://localhost:8000/sc/v0/search +curl -v -d '{"search": {"port": 112}}' -H 'Content-Type: application/json' http://127.0.0.1:8000/sc/v0/search echo echo -curl -d '{"search": {"port": {"$gt": 4}}}' -H 'Content-Type: application/json' http://localhost:8000/sc/v0/search +curl -v -d '{"search": {"port": {"$gt": 4}}}' -H 'Content-Type: application/json' http://127.0.0.1:8000/sc/v0/search echo echo -curl -d '{"search": {"port": 111}}' -H 'Content-Type: application/json' http://localhost:8000/sc/v0/search +curl -v -d '{"search": {"port": 111}}' -H 'Content-Type: application/json' http://127.0.0.1:8000/sc/v0/search echo echo -curl -d '{"search": {"port": {"sdfsf": 7}}}' -H 'Content-Type: application/json' http://localhost:8000/sc/v0/search +curl -v -d '{"search": {"port": {"sdfsf": 7}}}' -H 'Content-Type: application/json' http://127.0.0.1:8000/sc/v0/search echo echo -curl -d '{"search": {"port": {"$sdfsf": 7}}}' -H 'Content-Type: application/json' http://localhost:8000/sc/v0/search +curl -v -d '{"search": {"port": {"$sdfsf": 7}}}' -H 'Content-Type: application/json' http://127.0.0.1:8000/sc/v0/search echo echo -curl -d '{"search": {"portfdv": {"$asa": 7}}}' -H 'Content-Type: application/json' http://localhost:8000/sc/v0/search +curl -v -d '{"search": {"portfdv": {"$asa": 7}}}' -H 'Content-Type: application/json' http://127.0.0.1:8000/sc/v0/search echo echo echo echo -curl -X PUT --data-binary @data/example_data_3_replace_test.json http://localhost:8000/sc/v0 +curl -v -X PUT --data-binary @data/example_data_3_replace_test.json http://127.0.0.1:8000/sc/v0 + +echo +echo +curl -v http://127.0.0.1:8000/info # bash quickstart.sh -b || exit 1 -- cgit v1.1