mirror of
https://github.com/volodymyrsmirnov/MalwareMultiScan.git
synced 2025-08-25 14:01:13 +00:00
finished unit tests and docstrings
This commit is contained in:
@@ -5,6 +5,9 @@ using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace MalwareMultiScan.Api.Controllers
|
||||
{
|
||||
/// <summary>
|
||||
/// Downloads controller.
|
||||
/// </summary>
|
||||
[ApiController]
|
||||
[Route("api/download")]
|
||||
[Produces("application/octet-stream")]
|
||||
@@ -12,11 +15,19 @@ namespace MalwareMultiScan.Api.Controllers
|
||||
{
|
||||
private readonly IScanResultService _scanResultService;
|
||||
|
||||
/// <summary>
|
||||
/// Initialize downloads controller.
|
||||
/// </summary>
|
||||
/// <param name="scanResultService">Scan result service.</param>
|
||||
public DownloadController(IScanResultService scanResultService)
|
||||
{
|
||||
_scanResultService = scanResultService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Download file by id.
|
||||
/// </summary>
|
||||
/// <param name="id">File id.</param>
|
||||
[HttpGet("{id}")]
|
||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
||||
|
Reference in New Issue
Block a user