|
|
@ -19,6 +19,7 @@ namespace MediaBrowser.Api
|
|
|
|
/// Class Plugins
|
|
|
|
/// Class Plugins
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
[Route("/Plugins", "GET")]
|
|
|
|
[Route("/Plugins", "GET")]
|
|
|
|
|
|
|
|
[ServiceStack.ServiceHost.Api(("Gets a list of currently installed plugins"))]
|
|
|
|
public class GetPlugins : IReturn<List<PluginInfo>>
|
|
|
|
public class GetPlugins : IReturn<List<PluginInfo>>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -27,12 +28,14 @@ namespace MediaBrowser.Api
|
|
|
|
/// Class GetPluginAssembly
|
|
|
|
/// Class GetPluginAssembly
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
[Route("/Plugins/{Id}/Assembly", "GET")]
|
|
|
|
[Route("/Plugins/{Id}/Assembly", "GET")]
|
|
|
|
|
|
|
|
[ServiceStack.ServiceHost.Api(("Gets a plugin assembly file"))]
|
|
|
|
public class GetPluginAssembly
|
|
|
|
public class GetPluginAssembly
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the id.
|
|
|
|
/// Gets or sets the id.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The id.</value>
|
|
|
|
/// <value>The id.</value>
|
|
|
|
|
|
|
|
[ApiMember(Name = "Id", Description = "Plugin Id", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "GET")]
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -40,12 +43,14 @@ namespace MediaBrowser.Api
|
|
|
|
/// Class UninstallPlugin
|
|
|
|
/// Class UninstallPlugin
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
[Route("/Plugins/{Id}", "DELETE")]
|
|
|
|
[Route("/Plugins/{Id}", "DELETE")]
|
|
|
|
|
|
|
|
[ServiceStack.ServiceHost.Api(("Uninstalls a plugin"))]
|
|
|
|
public class UninstallPlugin : IReturnVoid
|
|
|
|
public class UninstallPlugin : IReturnVoid
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the id.
|
|
|
|
/// Gets or sets the id.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The id.</value>
|
|
|
|
/// <value>The id.</value>
|
|
|
|
|
|
|
|
[ApiMember(Name = "Id", Description = "Plugin Id", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "DELETE")]
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -53,12 +58,14 @@ namespace MediaBrowser.Api
|
|
|
|
/// Class GetPluginConfiguration
|
|
|
|
/// Class GetPluginConfiguration
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
[Route("/Plugins/{Id}/Configuration", "GET")]
|
|
|
|
[Route("/Plugins/{Id}/Configuration", "GET")]
|
|
|
|
|
|
|
|
[ServiceStack.ServiceHost.Api(("Gets a plugin's configuration"))]
|
|
|
|
public class GetPluginConfiguration
|
|
|
|
public class GetPluginConfiguration
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the id.
|
|
|
|
/// Gets or sets the id.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The id.</value>
|
|
|
|
/// <value>The id.</value>
|
|
|
|
|
|
|
|
[ApiMember(Name = "Id", Description = "Plugin Id", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "GET")]
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -66,12 +73,14 @@ namespace MediaBrowser.Api
|
|
|
|
/// Class UpdatePluginConfiguration
|
|
|
|
/// Class UpdatePluginConfiguration
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
[Route("/Plugins/{Id}/Configuration", "POST")]
|
|
|
|
[Route("/Plugins/{Id}/Configuration", "POST")]
|
|
|
|
|
|
|
|
[ServiceStack.ServiceHost.Api(("Updates a plugin's configuration"))]
|
|
|
|
public class UpdatePluginConfiguration : IRequiresRequestStream, IReturnVoid
|
|
|
|
public class UpdatePluginConfiguration : IRequiresRequestStream, IReturnVoid
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the id.
|
|
|
|
/// Gets or sets the id.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The id.</value>
|
|
|
|
/// <value>The id.</value>
|
|
|
|
|
|
|
|
[ApiMember(Name = "Id", Description = "Plugin Id", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "POST")]
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -85,12 +94,14 @@ namespace MediaBrowser.Api
|
|
|
|
/// Class GetPluginConfigurationFile
|
|
|
|
/// Class GetPluginConfigurationFile
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
[Route("/Plugins/{Id}/ConfigurationFile", "GET")]
|
|
|
|
[Route("/Plugins/{Id}/ConfigurationFile", "GET")]
|
|
|
|
|
|
|
|
[ServiceStack.ServiceHost.Api(("Gets a plugin's configuration file, in plain text"))]
|
|
|
|
public class GetPluginConfigurationFile
|
|
|
|
public class GetPluginConfigurationFile
|
|
|
|
{
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the id.
|
|
|
|
/// Gets or sets the id.
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The id.</value>
|
|
|
|
/// <value>The id.</value>
|
|
|
|
|
|
|
|
[ApiMember(Name = "Id", Description = "Plugin Id", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "GET")]
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -98,6 +109,7 @@ namespace MediaBrowser.Api
|
|
|
|
/// Class GetPluginSecurityInfo
|
|
|
|
/// Class GetPluginSecurityInfo
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
[Route("/Plugins/SecurityInfo", "GET")]
|
|
|
|
[Route("/Plugins/SecurityInfo", "GET")]
|
|
|
|
|
|
|
|
[ServiceStack.ServiceHost.Api(("Gets plugin registration information"))]
|
|
|
|
public class GetPluginSecurityInfo : IReturn<PluginSecurityInfo>
|
|
|
|
public class GetPluginSecurityInfo : IReturn<PluginSecurityInfo>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -106,6 +118,7 @@ namespace MediaBrowser.Api
|
|
|
|
/// Class UpdatePluginSecurityInfo
|
|
|
|
/// Class UpdatePluginSecurityInfo
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
[Route("/Plugins/SecurityInfo", "POST")]
|
|
|
|
[Route("/Plugins/SecurityInfo", "POST")]
|
|
|
|
|
|
|
|
[ServiceStack.ServiceHost.Api(("Updates plugin registration information"))]
|
|
|
|
public class UpdatePluginSecurityInfo : PluginSecurityInfo, IReturnVoid
|
|
|
|
public class UpdatePluginSecurityInfo : PluginSecurityInfo, IReturnVoid
|
|
|
|
{
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|