1 type derived from Todo
Sample (1)
src\OpenApi\test\Microsoft.AspNetCore.OpenApi.Tests\Shared\SharedTypes.cs (1)
30internal record TodoWithDueDate(int Id, string Title, bool Completed, DateTime CreatedAt, DateTime DueDate) : Todo(Id, Title, Completed, CreatedAt);
7 references to Todo
Sample (7)
Endpoints\MapFormEndpoints.cs (2)
25forms.MapPost("/form-todo", ([FromForm] Todo todo) => Results.Ok(todo)); 26forms.MapPost("/forms-pocos-and-files", ([FromForm] Todo todo, IFormFile file) => Results.Ok(new { Todo = todo, File = file.FileName }));
Endpoints\MapResponsesEndpoints.cs (2)
12.Produces<Todo>(additionalContentTypes: "text/xml"); 15.Produces<Todo>(contentType: "text/xml");
Endpoints\MapVersionedEndpoints.cs (1)
13v1.MapPost("/todos", (Todo todo) => Results.Created($"/todos/{todo.Id}", todo))
Endpoints\MapXmlEndpoints.cs (2)
74/// The project that contains <see cref="Todo"/> items. 90/// The project that contains <see cref="Todo"/> items.