mirror of https://github.com/Radarr/Radarr
16 lines
471 B
C#
16 lines
471 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Microsoft.AspNetCore.Mvc.Routing;
|
|
|
|
namespace Radarr.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; }
|
|
}
|
|
}
|