Files
Prowlarr-Prowlarr/src/Prowlarr.Http/REST/Attributes/RestGetByIdAttribute.cs
2021-04-20 21:14:31 +01:00

16 lines
473 B
C#

using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc.Routing;
namespace NzbDrone.Http.REST.Attributes
{
[AttributeUsage(AttributeTargets.Method)]
public class RestGetByIdAttribute : Attribute, IActionHttpMethodProvider, IRouteTemplateProvider
{
public IEnumerable<string> HttpMethods => new[] { "GET" };
public string Template => "{id:int}";
public int? Order => 0;
public string Name { get; }
}
}