You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -253,7 +253,7 @@ calls on the endpoint builder.
253
253
|`[AllowAnonymous]`| Class or method | Explicitly opts a method (or all methods in a class) into anonymous access, overriding `[RequireAuthorization]`. |
254
254
|`[DisableAntiforgery]`| Class or method | Calls `.DisableAntiforgery()` on the generated endpoint, matching the ASP.NET Core extension. |
255
255
|`[Accepts]` / `[Accepts<TRequest>]`| Class or method | Emits `.Accepts<TRequest>(contentType, additionalContentTypes...)` to document supported request bodies. Multiple attributes are allowed per endpoint. |
256
-
|`[Produces]` / `[Produces<TResponse>]`| Class or method | Emits `.Produces<TResponse>(statusCode, contentTypes...)` for each documented response type. Multiple attributes are allowed. |
256
+
|`[ProducesResponse]` / `[ProducesResponse<TResponse>]`| Class or method | Emits `.Produces<TResponse>(statusCode, contentTypes...)` for each documented response type. Multiple attributes are allowed. |
257
257
|`[ProducesProblem]`| Class or method | Emits `.ProducesProblem(statusCode, contentTypes...)` for endpoints that return RFC 7807 problem details. |
258
258
|`[ProducesValidationProblem]`| Class or method | Emits `.ProducesValidationProblem(statusCode, contentTypes...)` when validation failures are returned. |
0 commit comments