diff --git a/src/Readarr.Http/ApiInfoController.cs b/src/Readarr.Http/ApiInfoController.cs new file mode 100644 index 000000000..9625f0ce3 --- /dev/null +++ b/src/Readarr.Http/ApiInfoController.cs @@ -0,0 +1,23 @@ +using System.Collections.Generic; +using Microsoft.AspNetCore.Mvc; + +namespace Readarr.Http +{ + public class ApiInfoController : Controller + { + public ApiInfoController() + { + } + + [HttpGet("/api")] + [Produces("application/json")] + public ApiInfoResource GetApiInfo() + { + return new ApiInfoResource + { + Current = "v1", + Deprecated = new List() + }; + } + } +} diff --git a/src/Readarr.Http/ApiInfoResource.cs b/src/Readarr.Http/ApiInfoResource.cs new file mode 100644 index 000000000..ec3bc7959 --- /dev/null +++ b/src/Readarr.Http/ApiInfoResource.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Readarr.Http +{ + public class ApiInfoResource + { + public string Current { get; set; } + public List Deprecated { get; set; } + } +}