We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffee0b2 commit 94e40fdCopy full SHA for 94e40fd
src/ProjectTemplates/Web.ProjectTemplates/content/WebApiAot-CSharp/Program.Main.cs
@@ -36,7 +36,9 @@ public static void Main(string[] args)
36
? Results.Ok(todo)
37
: Results.NotFound())
38
#if (EnableOpenAPI)
39
- .WithName("GetTodoById");
+ .WithName("GetTodoById")
40
+ .Produces<Todo>(StatusCodes.Status200OK)
41
+ .Produces(StatusCodes.Status404NotFound);
42
#elif
43
;
44
#endif
0 commit comments