Graphcool / graphcool-framework

Apache License 2.0
1.77k stars 130 forks source link

HTTP Webhook as Function Type/Trigger #134

Open marktani opened 6 years ago

marktani commented 6 years ago

Issue by marktani Friday Aug 25, 2017 at 12:02 GMT Originally opened as https://github.com/graphcool/prisma/issues/354


allow Graphcool Functions that would be triggered by HTTP requests.

marktani commented 6 years ago

Comment by albert-tse Friday Aug 25, 2017 at 15:33 GMT


Thanks @marktani It would be really nice to have this

marktani commented 6 years ago

Comment by kbrandwijk Friday Aug 25, 2017 at 23:01 GMT


So basically, built-in webtask.io?

marktani commented 6 years ago

Comment by kbrandwijk Saturday Oct 14, 2017 at 11:33 GMT


As function exexution has now moved to AWS, and the project file has matured a lot, I think the steps to achieve this now are minimal.

I would propose adding another function type to the project definition, something like endpoint or something (needs a better term). Those functions would be available directly through https://api.graph.cool/simple/v1/c......./functionName. They probably also need a HTTP method (get/post).