Удалил тестовый запрос

This commit is contained in:
2025-09-09 17:22:06 +03:00
parent 428ee1d388
commit 7e1df403e2

View File

@@ -12,25 +12,6 @@ namespace SfeduSchedule.Controllers
public class ScheduleController(ModeusService modeusService, ILogger<ScheduleController> logger) : ControllerBase
{
/// <summary>
/// Получить расписание для указанных пользователей.
/// </summary>
/// <param name="attendeePersonId">Список GUID пользователей, для которых запрашивается расписание.</param>
/// <returns>Список событий расписания.</returns>
/// <response code="200">Возвращает расписание</response>
/// <response code="429">Слишком много запросов</response>
[HttpGet]
[Route("test")]
public async Task<IActionResult> Get([FromQuery] List<Guid> attendeePersonId, [FromQuery] DateTime? startDate, [FromQuery] DateTime? endDate)
{
startDate ??= DateTime.UtcNow;
endDate ??= DateTime.UtcNow.AddDays(20);
var msr = new ModeusScheduleRequest(500, (DateTime)startDate, (DateTime)endDate, attendeePersonId);
var schedule = await modeusService.GetScheduleAsync(msr);
return Ok(schedule);
}
/// <summary>
/// Получить расписание по пользовательскому запросу.
/// </summary>