openfaas function for fodmap diet
fodmap diet function is live at fodmap-diet.o6s.io
curl https://fodmap-diet.o6s.io/fodmap-diet -d '{"items":["banana","cream"]}'
deploy
faas deploy -f https://raw.githubusercontent.com/fodmap-diet/fodmap-diet-function/master/stack.yml
test
curl http://192.168.99.100:8080/function/fodmap-diet -d '{"items":["banana","cream"]}'
sample output
{
"banana": {
"category": "fruit",
"fodmap": "low",
"condition": "unripe",
"note": "ripe banana has high levels of fructans"
},
"cream": {
"category": "dairy",
"fodmap": "high"
}
}
to improve performance allow write to rootfs
and disable read_only_fs
in stack.yml
environment:
read_only_fs: false