Junior From PDF Power Questions High-Impact Interview Questions

Basic ASP.NET Core REST API?

[ApiController]

[Route("api/[controller]")]

public class EmployeeController : ControllerBase
{

[HttpGet("{id}")]

public IActionResult Get(int id)
{
return Ok(new { Id = id, Name = "Sandeep" });
}
}

Key Characteristics:

  • Lightweight
  • JSON support by default
  • Built-in dependency injection

More from Career Preparation

All questions for this course
Toolliyo Assistant
Ask about tutorials, ebooks, training, pricing, mentor services, and support. I use public site content only—not admin or internal tools.

care@toolliyo.com

Need callback? Share your details