swaggerblueprint

Blueprint project
git clone git://git.wimdupont.com/swaggerblueprint.git
Log | Files | Refs | README | LICENSE

commit db77caf57cdffff1f65a92060e7b6280acf99b8d
parent 766fb24b18dca84576fd289cbc76486e2a3d3e7e
Author: Wim Dupont <wim@wimdupont.com>
Date:   Sun, 19 Mar 2023 11:41:44 +0100

script cleanup

Diffstat:
Msrc/test/resources/play.sh | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/test/resources/play.sh b/src/test/resources/play.sh @@ -33,12 +33,12 @@ get_url () { } get_body_name () { - echo "Request name? (Default= $1)" + echo "Request name?" read -r body_name } get_body_number () { - echo "Request number? (Default= $1)" + echo "Request number?" read -r body_number } @@ -61,15 +61,15 @@ do ;; POST) - get_body_name "Created John" - get_body_number 120 + get_body_name + get_body_number request=$(curl -X POST -sw '%{http_code}' $(get_url) -H 'Content-Type: application/json' -d "{\"name\":\"${body_name}\",\"number\":\"${body_number}\"}" | jq) ;; PUT) get_id - get_body_name "Updated John" - get_body_number 166 + get_body_name + get_body_number request=$(curl -X PUT -sw '%{http_code}' $(get_url "/${id}") -H 'Content-Type: application/json' -d "{\"name\":\"${body_name}\",\"number\":\"${body_number}\"}"| jq) ;;