fehler finished + test

This commit is contained in:
darthsandmann
2017-01-18 18:14:35 +01:00
parent 1a415347c8
commit 0f7fa73734
44 changed files with 431 additions and 112 deletions

Binary file not shown.

View File

@ -1,4 +0,0 @@
curl \
--request GET \
-D- \
http://localhost:8080

View File

@ -1,4 +0,0 @@
curl \
--request GET \
-D- \
http://localhost:8080/fehler

View File

@ -1,4 +0,0 @@
curl \
--request GET \
-D- \
http://localhost:8080

View File

@ -1,4 +0,0 @@
curl \
--request GET \
-D- \
http://localhost:8080

View File

@ -1,4 +0,0 @@
curl \
--request GET \
-D- \
http://localhost:8080/komponente

View File

@ -1,4 +0,0 @@
curl \
--request GET \
-D- \
http://localhost:8080/projekt

View File

@ -1,4 +0,0 @@
curl \
--request GET \
-D- \
http://localhost:8080

View File

@ -1,4 +0,0 @@
curl \
--request GET \
-D- \
http://localhost:8080

View File

@ -1,4 +0,0 @@
curl \
--request GET \
-D- \
http://localhost:8080

View File

@ -1,4 +0,0 @@
curl \
--request GET \
-D- \
http://localhost:8080/templates

99
Praktikum3/bt/test/test.sh Executable file
View File

@ -0,0 +1,99 @@
#!/bin/bash
# Bash Menu Script Example
PS3='Auswahl: '
options=("GET" "GET projekt" "GET projektkomponenten" "GET komponente" "GET qsmitarbeiter" "GET swentwickler" "GET katfehler" "GET katursache" "GET fehler" "GET fehlererkannt" "GET fehlerbehoben" "GET prolist" "GET katlist" "GET templates" "Quit")
select opt in "${options[@]}"
do
case $opt in
"GET")
curl \
--request GET \
-D- \
http://localhost:8080
;;
"GET projekt")
curl \
--request GET \
-D- \
http://localhost:8080/projekt
;;
"GET projektkomponenten")
curl \
--request GET \
-D- \
http://localhost:8080/projektkomponenten
;;
"GET komponente")
curl \
--request GET \
-D- \
http://localhost:8080/komponente
;;
"GET qsmitarbeiter")
curl \
--request GET \
-D- \
http://localhost:8080/qsmitarbeiter
;;
"GET swentwickler")
curl \
--request GET \
-D- \
http://localhost:8080/swentwickler
;;
"GET katfehler")
curl \
--request GET \
-D- \
http://localhost:8080/katfehler
;;
"GET katursache")
curl \
--request GET \
-D- \
http://localhost:8080/katursache
;;
"GET fehler")
curl \
--request GET \
-D- \
http://localhost:8080/fehler
;;
"GET fehlererkannt")
curl \
--request GET \
-D- \
http://localhost:8080/fehler/?type=erkannt
;;
"GET fehlerbehoben")
curl \
--request GET \
-D- \
http://localhost:8080/fehler/?type=behoben
;;
"GET prolist")
curl \
--request GET \
-D- \
http://localhost:8080/prolist
;;
"GET katlist")
curl \
--request GET \
-D- \
http://localhost:8080/katlist
;;
"GET templates")
curl \
--request GET \
-D- \
http://localhost:8080/templates
;;
"Quit")
break
;;
*) echo invalid option;;
esac
done