I’m trying to build an app using Functions. I’m unable to find the documentation for how to use this platform. Could you please point me in the right direction?
Here are a few basic questions I’ve been unable to find an answer to thus far. I’m working with the python runtime environment. Do I have to name my function main inside of my .py file? Where is it documented? I noticed that in the examples a dictionary is returned. This dictionary sometimes has the keys statusCode and body. What other keys are possible? Where is it documented? Am I supposed to guess how to return headers? By default doctl creates a prject.yaml with lots of fields in it. What does each field do? What are the possible values for each field?
Overall did I miss a crucial peace of documentation or is it just undocumented? Is the GUI the main way it supposed to be used? I really find the current situation of this feature puzzling
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
New accounts only. By submitting your email you agree to our Privacy Policy.
Hi there,
You can find the documentation here:
https://docs.digitalocean.com/products/functions/how-to/create-functions/
The documentation includes the following:
In addition to that I could also suggest the DigitalOcean GitHub profile where there are multiple samle functions which you could use as a reference:
https://github.com/digitalocean/sample-functions-python-twilio-sms
Hope that this helps! Let me know if you have any other questions!
Best,
Bobby