Created
August 6, 2023 14:05
-
-
Save nishanc/0b5886f6db87ede440a81bb3915bd25a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ApiController] | |
[Route("api/[controller]")] | |
public class TodosController : Controller | |
{ | |
[HttpGet("/")] | |
// [ProducesResponseType(typeof(Todo), StatusCodes.Status200OK)] | |
[ProducesResponseType<Todo>(StatusCodes.Status200OK)] | |
public Todo Get() => new Todo(1, "Write a sample", DateTime.Now, false); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment