analythium / openfaas-rstats-templates

OpenFaaS templates for R
MIT License
20 stars 1 forks source link

Explore OpenCPU microservice and JSON RPC #25

Closed psolymos closed 3 years ago

psolymos commented 3 years ago

This should work: https://www.opencpu.org/api.html#api-json

Only Get requests are getting through, but not POST.

See this branch.

psolymos commented 3 years ago

OpenCPU as a function is probably less important in general. Static listing of resources is not needed for FaaS applications. JSON RPC can be replicated using something like opencpu:::evaluate_input (e.g. as the universal handler example #20).