Files
UnrealEngineUWP/Engine/Source/Programs/Horde/Horde.Build/Controllers/SchedulesController.cs
ben marsh 40b932b1af Horde: Rename the HordeServer project to Horde.Build.
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 17926237 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v885-17909292)

[CL 17926263 by ben marsh in ue5-release-engine-test branch]
2021-10-26 12:03:02 -04:00

43 lines
1.3 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using EpicGames.Core;
using HordeServer.Api;
using HordeServer.Models;
using HordeServer.Services;
using HordeServer.Utilities;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using MongoDB.Bson;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace HordeServer.Controllers
{
/// <summary>
/// Controller for the /api/v1/projects endpoint
/// </summary>
[ApiController]
[Authorize]
[Route("[controller]")]
public class SchedulesController : ControllerBase
{
/// <summary>
/// Query all the schedules
/// </summary>
/// <param name="StreamId">Id of the stream to search for schedules for</param>
/// <param name="Filter">Filter for the properties to return</param>
/// <returns>Information about all the schedules</returns>
[HttpGet]
[Route("/api/v1/schedules")]
[ProducesResponseType(typeof(List<GetScheduleResponse>), 200)]
#pragma warning disable CA1801 // Remove unused parameter
public Task<ActionResult<List<object>>> GetSchedulesAsync([FromQuery] string? StreamId = null, [FromQuery] PropertyFilter? Filter = null)
{
return Task.FromResult<ActionResult<List<object>>>(new List<object>());
}
#pragma warning restore CA1801 // Remove unused parameter
}
}