Skip to content

Instantly share code, notes, and snippets.

@csiebler
Created June 14, 2019 07:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save csiebler/0860b4a9e3ff11c3ace37b6415535d37 to your computer and use it in GitHub Desktop.
Save csiebler/0860b4a9e3ff11c3ace37b6415535d37 to your computer and use it in GitHub Desktop.
Dummy Python Function
import logging
import json
import azure.functions as func
def main(req: func.HttpRequest) -> func.HttpResponse:
products = [
{
"name": "Azure DevOps",
"price": 4.99
},
{
"name": "Azure Functions",
"price": 0.01
}
]
return func.HttpResponse(json.dumps(products))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment