Files
spring-cloud-function/scripts/registerFunction.sh
markfisher 19fd056a5e add support for simple (non-Flux) types
add objectToStringHttpMessageConverter

CompilerController accepts parameterized types
2017-02-24 12:14:57 -05:00

22 lines
336 B
Bash
Executable File

#!/bin/bash
while getopts ":n:f:i:o:" opt; do
case $opt in
n)
NAME=$OPTARG
;;
f)
FUNC=$OPTARG
;;
i)
INTYPE=$OPTARG
;;
o)
OUTTYPE=$OPTARG
;;
esac
done
curl -X POST -H "Content-Type: text/plain" -d $FUNC ":8080/function/$NAME?inputType=$INTYPE&outputType=$OUTTYPE"