Files
spring-cloud-function/scripts/registerSupplier.sh
2017-01-19 15:55:49 -05:00

15 lines
216 B
Bash
Executable File

#!/bin/bash
while getopts ":n:f:" opt; do
case $opt in
n)
NAME=$OPTARG
;;
f)
FUNC=$OPTARG
;;
esac
done
curl -X POST -H "Content-Type: text/plain" -d $FUNC :8080/supplier/$NAME