Files
spring-cloud-function/scripts/registerConsumer.sh
Dave Syer 99c7b995e0 Add FunctionFactoryMetadata interface for type discovery
The compiled functions implement that interface which means you can inspect
the signature of the method that created them and discover its
generic types.
2017-05-26 10:09:47 +01:00

18 lines
273 B
Bash
Executable File

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