Closed
Description
I have some strange issue, when adding the references, and some basic attributes to the function to see if that will work, everything is OK locally, but when deployed on Azure Function app there are no endpoints:
[FunctionName("InProgress")]
[OpenApiOperation(operationId: "inProgress", tags: new[] { "Events In Progress" }, Summary = "Gets the name", Description = "Get the events that are processing at the moment.", Visibility = OpenApiVisibilityType.Important)]
[OpenApiSecurity("function_key", SecuritySchemeType.ApiKey, Name = "code", In = OpenApiSecurityLocationType.Query)]
[OpenApiResponseWithBody(statusCode: HttpStatusCode.OK, contentType: "application/json", bodyType: typeof(string), Summary = "The response", Description = "This returns the response")]
public async Task<IActionResult> InProgress([HttpTrigger(AuthorizationLevel.Function, "GET", Route = "monitoring/events/in-progress")] HttpRequest req, CancellationToken cancellationToken)
I tried to comment out the OpenApiSecurity attribute and no success.
Do you have any clue why the difference ? Does it matter that the function is running in ASE ?