From fb62e300d7d294b97740b04e6e7b8e866d3a9a29 Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Fri, 8 Mar 2013 15:36:19 -0500 Subject: removed library/ prefix from genre, studio, year and person url's --- MediaBrowser.Api/Library/LibraryService.cs | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'MediaBrowser.Api/Library/LibraryService.cs') diff --git a/MediaBrowser.Api/Library/LibraryService.cs b/MediaBrowser.Api/Library/LibraryService.cs index 5e705f5d8..c7adf58ef 100644 --- a/MediaBrowser.Api/Library/LibraryService.cs +++ b/MediaBrowser.Api/Library/LibraryService.cs @@ -14,6 +14,7 @@ namespace MediaBrowser.Api.Library /// Class GetPhyscialPaths /// [Route("/Library/PhysicalPaths", "GET")] + [ServiceStack.ServiceHost.Api(Description = "Gets a list of physical paths from virtual folders")] public class GetPhyscialPaths : IReturn> { } @@ -22,64 +23,74 @@ namespace MediaBrowser.Api.Library /// Class GetItemTypes /// [Route("/Library/ItemTypes", "GET")] + [ServiceStack.ServiceHost.Api(Description = "Gets a list of BaseItem types")] public class GetItemTypes : IReturn> { /// /// Gets or sets a value indicating whether this instance has internet provider. /// /// true if this instance has internet provider; otherwise, false. + [ApiMember(Name = "HasInternetProvider", Description = "Optional filter by item types that have internet providers", IsRequired = false, DataType = "boolean", ParameterType = "query", Verb = "GET")] public bool HasInternetProvider { get; set; } } /// /// Class GetPerson /// - [Route("/Library/Persons/{Name}", "GET")] + [Route("/Persons/{Name}", "GET")] + [ServiceStack.ServiceHost.Api(Description = "Gets a person, by name")] public class GetPerson : IReturn { /// /// Gets or sets the name. /// /// The name. + [ApiMember(Name = "Name", Description = "The person name", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "GET")] public string Name { get; set; } } /// /// Class GetStudio /// - [Route("/Library/Studios/{Name}", "GET")] + [Route("/Studios/{Name}", "GET")] + [ServiceStack.ServiceHost.Api(Description = "Gets a studio, by name")] public class GetStudio : IReturn { /// /// Gets or sets the name. /// /// The name. + [ApiMember(Name = "Name", Description = "The studio name", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "GET")] public string Name { get; set; } } /// /// Class GetGenre /// - [Route("/Library/Genres/{Name}", "GET")] + [Route("/Genres/{Name}", "GET")] + [ServiceStack.ServiceHost.Api(Description = "Gets a genre, by name")] public class GetGenre : IReturn { /// /// Gets or sets the name. /// /// The name. + [ApiMember(Name = "Name", Description = "The genre name", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "GET")] public string Name { get; set; } } /// /// Class GetYear /// - [Route("/Library/Years/{Year}", "GET")] + [Route("/Years/{Year}", "GET")] + [ServiceStack.ServiceHost.Api(Description = "Gets a year")] public class GetYear : IReturn { /// /// Gets or sets the year. /// /// The year. + [ApiMember(Name = "Year", Description = "The year", IsRequired = true, DataType = "int", ParameterType = "path", Verb = "GET")] public int Year { get; set; } } -- cgit v1.2.3