Created
June 14, 2019 07:46
-
-
Save csiebler/0860b4a9e3ff11c3ace37b6415535d37 to your computer and use it in GitHub Desktop.
Dummy Python Function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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