Skip to content

Commit f9739df

Browse files
committed
Update docs
1 parent ecfa07e commit f9739df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/enable-open-api-endpoints.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ namespace MyOpenApiFunctionApp
111111
// Add these three attribute classes below
112112
[OpenApiOperation(operationId: "getName", tags: new[] { "name" }, Summary = "Gets the name", Description = "This gets the name.", Visibility = OpenApiVisibilityType.Important)]
113113
[OpenApiParameter(name: "name", In = ParameterLocation.Query, Required = true, Type = typeof(string), Summary = "The name", Description = "The name", Visibility = OpenApiVisibilityType.Important)]
114+
[OpenApiSecurity("function_key", SecuritySchemeType.ApiKey, Name = "x-functions-key", In = OpenApiSecurityLocationType.Header)]
114115
[OpenApiResponseWithBody(statusCode: HttpStatusCode.OK, contentType: "text/plain", bodyType: typeof(string), Summary = "The response", Description = "This returns the response")]
115116
// Add these three attribute classes above
116117

0 commit comments

Comments
 (0)