fehler finished + test
This commit is contained in:
BIN
Praktikum3/bt/test/.DS_Store
vendored
BIN
Praktikum3/bt/test/.DS_Store
vendored
Binary file not shown.
@ -1,4 +0,0 @@
|
||||
curl \
|
||||
--request GET \
|
||||
-D- \
|
||||
http://localhost:8080
|
@ -1,4 +0,0 @@
|
||||
curl \
|
||||
--request GET \
|
||||
-D- \
|
||||
http://localhost:8080/fehler
|
@ -1,4 +0,0 @@
|
||||
curl \
|
||||
--request GET \
|
||||
-D- \
|
||||
http://localhost:8080
|
@ -1,4 +0,0 @@
|
||||
curl \
|
||||
--request GET \
|
||||
-D- \
|
||||
http://localhost:8080
|
@ -1,4 +0,0 @@
|
||||
curl \
|
||||
--request GET \
|
||||
-D- \
|
||||
http://localhost:8080/komponente
|
@ -1,4 +0,0 @@
|
||||
curl \
|
||||
--request GET \
|
||||
-D- \
|
||||
http://localhost:8080/projekt
|
@ -1,4 +0,0 @@
|
||||
curl \
|
||||
--request GET \
|
||||
-D- \
|
||||
http://localhost:8080
|
@ -1,4 +0,0 @@
|
||||
curl \
|
||||
--request GET \
|
||||
-D- \
|
||||
http://localhost:8080
|
@ -1,4 +0,0 @@
|
||||
curl \
|
||||
--request GET \
|
||||
-D- \
|
||||
http://localhost:8080
|
@ -1,4 +0,0 @@
|
||||
curl \
|
||||
--request GET \
|
||||
-D- \
|
||||
http://localhost:8080/templates
|
99
Praktikum3/bt/test/test.sh
Executable file
99
Praktikum3/bt/test/test.sh
Executable 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
|
Reference in New Issue
Block a user