Dummy Python Function
This file contains 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