You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lidarr/src/Lidarr.Http/REST/Attributes/RestGetByIdAttribute.cs

16 lines
471 B

using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc.Routing;
namespace Lidarr.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; }
}
}