AipFileController.cs 945 B

1234567891011121314151617181920212223242526
  1. using AipGateway.API.Domain.IRepositories.IGenericRepositories;
  2. using AipGateway.API.Domain.Models;
  3. using AipGateway.API.Extensions;
  4. using Microsoft.AspNetCore.Mvc;
  5. using Swashbuckle.AspNetCore.Annotations;
  6. namespace AipGateway.API.Controllers
  7. {
  8. [ApiController]
  9. [Route("v1/aip-files")]
  10. [Produces("application/json")]
  11. [SwaggerResponse(500, type: typeof(ErrorResponseModel))]
  12. [SwaggerResponse(400, type: typeof(ErrorResponseModel))]
  13. [SwaggerResponse(404, type: typeof(ErrorResponseModel))]
  14. [SwaggerResponse(422, type: typeof(ErrorResponseModel))]
  15. [SwaggerResponse(304, type: typeof(ErrorResponseModel))]
  16. public class AipFileController : BaseModule
  17. {
  18. private readonly IUnitOfWork _unitOfWork;
  19. public AipFileController(IUnitOfWork unitOfWork, IWebHostEnvironment webHostEnvironment) : base(unitOfWork, webHostEnvironment)
  20. {
  21. _unitOfWork = unitOfWork;
  22. }
  23. }
  24. }