Compiled functions always show up with no metadata, and you can only guess what the types are from the bean definition. Probably we should add more information to the bean definition if we have it when we compile the function. There is still a problem if user defines functions that are not of Flux<String> (but that has always been the case).
22 lines
345 B
Bash
Executable File
22 lines
345 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 "localhost:8080/function/$NAME?inputType=$INTYPE&outputType=$OUTTYPE"
|
|
|