DEV Community

Discussion on: Creating a Web API with Azure Functions, Azure Cosmos DB MongoDB API and C#

Collapse
 
brentminder profile image
brentminder

Hey Will,

How would you use the latest azure functions (.Net 5 out of process) where the return type is HttpResponseData instead of IActionResult?

eg Orig:
[FunctionName(nameof(GetBookById))]
public async Task Run([HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "Book/{id}")] HttpRequest req, string id)

eg Latest:
[FunctionName(nameof(GetBookById))]
public async Task Run([HttpTrigger(AuthorizationLevel.Anonymous, "get", Route = "Book/{id}")] HttpRequest req, string id)

Collapse
 
willvelida profile image
Will Velida

Hey brentminder!

I'm not too sure to be honest, since I haven't had a change to work with isolated functions yet.

I'll see if I can give this a go soon and get back to you :)