Major refactor of AdminController and related services to support full CRUD for candidate resume, projects, hobbies, skills, academics, experiences, certifications, and contact info, all using access token claims for candidate identity. Introduced AdminService and expanded IResumeRepository for granular entity management. Updated DTOs for upsert operations and date support. Improved API versioning (Asp.Versioning.Mvc), Swagger integration, and middleware setup. Added unit test project. Enhanced error handling, documentation, and mapping.
19 lines
429 B
C#
19 lines
429 B
C#
using Asp.Versioning;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace PortBlog.API.Controllers
|
|
{
|
|
[ApiVersionNeutral]
|
|
[ApiController]
|
|
[Route("api/v{version:apiVersion}/blog/post")]
|
|
public class PostController : ControllerBase
|
|
{
|
|
private readonly ILogger<PostController> _logger;
|
|
|
|
public PostController(ILogger<PostController> logger)
|
|
{
|
|
this._logger = logger;
|
|
}
|
|
}
|
|
}
|