From c4c9126f79f43ad865cfa670bda90a94ffb39d9c Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Fri, 8 Mar 2013 14:14:09 -0500 Subject: added more attributes for api docs --- MediaBrowser.Api/PluginService.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'MediaBrowser.Api/PluginService.cs') diff --git a/MediaBrowser.Api/PluginService.cs b/MediaBrowser.Api/PluginService.cs index 847478beb..3f4146020 100644 --- a/MediaBrowser.Api/PluginService.cs +++ b/MediaBrowser.Api/PluginService.cs @@ -19,6 +19,7 @@ namespace MediaBrowser.Api /// Class Plugins /// [Route("/Plugins", "GET")] + [ServiceStack.ServiceHost.Api(("Gets a list of currently installed plugins"))] public class GetPlugins : IReturn> { } @@ -27,12 +28,14 @@ namespace MediaBrowser.Api /// Class GetPluginAssembly /// [Route("/Plugins/{Id}/Assembly", "GET")] + [ServiceStack.ServiceHost.Api(("Gets a plugin assembly file"))] public class GetPluginAssembly { /// /// Gets or sets the id. /// /// The id. + [ApiMember(Name = "Id", Description = "Plugin Id", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "GET")] public Guid Id { get; set; } } @@ -40,12 +43,14 @@ namespace MediaBrowser.Api /// Class UninstallPlugin /// [Route("/Plugins/{Id}", "DELETE")] + [ServiceStack.ServiceHost.Api(("Uninstalls a plugin"))] public class UninstallPlugin : IReturnVoid { /// /// Gets or sets the id. /// /// The id. + [ApiMember(Name = "Id", Description = "Plugin Id", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "DELETE")] public Guid Id { get; set; } } @@ -53,12 +58,14 @@ namespace MediaBrowser.Api /// Class GetPluginConfiguration /// [Route("/Plugins/{Id}/Configuration", "GET")] + [ServiceStack.ServiceHost.Api(("Gets a plugin's configuration"))] public class GetPluginConfiguration { /// /// Gets or sets the id. /// /// The id. + [ApiMember(Name = "Id", Description = "Plugin Id", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "GET")] public Guid Id { get; set; } } @@ -66,12 +73,14 @@ namespace MediaBrowser.Api /// Class UpdatePluginConfiguration /// [Route("/Plugins/{Id}/Configuration", "POST")] + [ServiceStack.ServiceHost.Api(("Updates a plugin's configuration"))] public class UpdatePluginConfiguration : IRequiresRequestStream, IReturnVoid { /// /// Gets or sets the id. /// /// The id. + [ApiMember(Name = "Id", Description = "Plugin Id", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "POST")] public Guid Id { get; set; } /// @@ -85,12 +94,14 @@ namespace MediaBrowser.Api /// Class GetPluginConfigurationFile /// [Route("/Plugins/{Id}/ConfigurationFile", "GET")] + [ServiceStack.ServiceHost.Api(("Gets a plugin's configuration file, in plain text"))] public class GetPluginConfigurationFile { /// /// Gets or sets the id. /// /// The id. + [ApiMember(Name = "Id", Description = "Plugin Id", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "GET")] public Guid Id { get; set; } } @@ -98,6 +109,7 @@ namespace MediaBrowser.Api /// Class GetPluginSecurityInfo /// [Route("/Plugins/SecurityInfo", "GET")] + [ServiceStack.ServiceHost.Api(("Gets plugin registration information"))] public class GetPluginSecurityInfo : IReturn { } @@ -106,6 +118,7 @@ namespace MediaBrowser.Api /// Class UpdatePluginSecurityInfo /// [Route("/Plugins/SecurityInfo", "POST")] + [ServiceStack.ServiceHost.Api(("Updates plugin registration information"))] public class UpdatePluginSecurityInfo : PluginSecurityInfo, IReturnVoid { } -- cgit v1.2.3