Удалил тестовый запрос
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user