Merge pull request #111 from lidarr/fix/change-api-version-v1

Change API Version from V3 to V1
pull/115/head
Qstick 7 years ago committed by GitHub
commit 3f0b315051
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,7 +1,7 @@
using System.Collections.Generic;
using Lidarr.Api.V3.Albums;
using Lidarr.Api.V1.Albums;
namespace Lidarr.Api.V3.AlbumStudio
namespace Lidarr.Api.V1.AlbumStudio
{
public class AlbumStudioArtistResource
{

@ -3,9 +3,9 @@ using Nancy;
using NzbDrone.Core.Music;
using Lidarr.Http.Extensions;
namespace Lidarr.Api.V3.AlbumStudio
namespace Lidarr.Api.V1.AlbumStudio
{
public class AlbumStudioModule : SonarrV3Module
public class AlbumStudioModule : LidarrV1Module
{
private readonly IArtistService _artistService;
private readonly IAlbumMonitoredService _episodeMonitoredService;

@ -1,7 +1,7 @@
using System.Collections.Generic;
using NzbDrone.Core.Music;
namespace Lidarr.Api.V3.AlbumStudio
namespace Lidarr.Api.V1.AlbumStudio
{
public class AlbumStudioResource
{

@ -9,7 +9,7 @@ using Lidarr.Http.Extensions;
using Lidarr.Http.REST;
using NzbDrone.Core.ArtistStats;
namespace Lidarr.Api.V3.Albums
namespace Lidarr.Api.V1.Albums
{
public class AlbumModule : AlbumModuleWithSignalR
{

@ -3,14 +3,14 @@ using System.Collections.Generic;
using System.Linq;
using FluentValidation;
using NzbDrone.Common.Extensions;
using Lidarr.Api.V3.Artist;
using Lidarr.Api.V1.Artist;
using NzbDrone.Core.DecisionEngine;
using NzbDrone.Core.Music;
using NzbDrone.Core.ArtistStats;
using NzbDrone.SignalR;
using Lidarr.Http;
namespace Lidarr.Api.V3.Albums
namespace Lidarr.Api.V1.Albums
{
public abstract class AlbumModuleWithSignalR : LidarrRestModuleWithSignalR<AlbumResource, Album>
{

@ -3,11 +3,11 @@ using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json;
using NzbDrone.Core.Music;
using Lidarr.Api.V3.Artist;
using Lidarr.Api.V1.Artist;
using Lidarr.Http.REST;
using NzbDrone.Core.MediaCover;
namespace Lidarr.Api.V3.Albums
namespace Lidarr.Api.V1.Albums
{
public class AlbumResource : RestResource
{

@ -1,7 +1,7 @@
using System;
using NzbDrone.Core.ArtistStats;
namespace Lidarr.Api.V3.Albums
namespace Lidarr.Api.V1.Albums
{
public class AlbumStatisticsResource
{

@ -1,7 +1,7 @@
using System;
using System.Collections.Generic;
namespace Lidarr.Api.V3.Albums
namespace Lidarr.Api.V1.Albums
{
public class AlbumsMonitoredResource
{

@ -1,4 +1,4 @@
namespace Lidarr.Api.V3.Series
namespace Lidarr.Api.V1.Series
{
public class AlternateTitleResource
{

@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace Lidarr.Api.V3.Artist
namespace Lidarr.Api.V1.Artist
{
public class ArtistEditorDeleteResource
{

@ -4,9 +4,9 @@ using NzbDrone.Common.Extensions;
using NzbDrone.Core.Music;
using Lidarr.Http.Extensions;
namespace Lidarr.Api.V3.Artist
namespace Lidarr.Api.V1.Artist
{
public class ArtistEditorModule : SonarrV3Module
public class ArtistEditorModule : LidarrV1Module
{
private readonly IArtistService _artistService;

@ -1,7 +1,7 @@
using System.Collections.Generic;
using NzbDrone.Core.Music;
namespace Lidarr.Api.V3.Artist
namespace Lidarr.Api.V1.Artist
{
public class ArtistEditorResource
{

@ -4,7 +4,7 @@ using NzbDrone.Core.Music;
using Lidarr.Http;
using Lidarr.Http.Extensions;
namespace Lidarr.Api.V3.Artist
namespace Lidarr.Api.V1.Artist
{
public class ArtistImportModule : LidarrRestModule<ArtistResource>
{

@ -6,7 +6,7 @@ using NzbDrone.Core.MetadataSource;
using Lidarr.Http;
using Lidarr.Http.Extensions;
namespace Lidarr.Api.V3.Artist
namespace Lidarr.Api.V1.Artist
{
public class ArtistLookupModule : LidarrRestModule<ArtistResource>
{

@ -13,13 +13,13 @@ using NzbDrone.Core.Music;
using NzbDrone.Core.Music.Events;
using NzbDrone.Core.Validation;
using NzbDrone.Core.Validation.Paths;
using Lidarr.Api.V3.Albums;
using Lidarr.Api.V1.Albums;
using NzbDrone.SignalR;
using Lidarr.Http;
using Lidarr.Http.Extensions;
using Lidarr.Http.Mapping;
namespace Lidarr.Api.V3.Artist
namespace Lidarr.Api.V1.Artist
{
public class ArtistModule : LidarrRestModuleWithSignalR<ArtistResource, NzbDrone.Core.Music.Artist>,
IHandle<TrackImportedEvent>,

@ -3,10 +3,10 @@ using System.Collections.Generic;
using System.Linq;
using NzbDrone.Core.MediaCover;
using NzbDrone.Core.Music;
using Lidarr.Api.V3.Albums;
using Lidarr.Api.V1.Albums;
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.Artist
namespace Lidarr.Api.V1.Artist
{
public class ArtistResource : RestResource
{

@ -1,8 +1,8 @@
using NzbDrone.Core.Blacklisting;
using NzbDrone.Core.Blacklisting;
using NzbDrone.Core.Datastore;
using Lidarr.Http;
namespace Lidarr.Api.V3.Blacklist
namespace Lidarr.Api.V1.Blacklist
{
public class BlacklistModule : LidarrRestModule<BlacklistResource>
{
@ -33,4 +33,4 @@ namespace Lidarr.Api.V3.Blacklist
_blacklistService.Delete(id);
}
}
}
}

@ -3,10 +3,10 @@ using System.Collections.Generic;
using NzbDrone.Core.Indexers;
using NzbDrone.Core.Languages;
using NzbDrone.Core.Qualities;
using Lidarr.Api.V3.Artist;
using Lidarr.Api.V1.Artist;
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.Blacklist
namespace Lidarr.Api.V1.Blacklist
{
public class BlacklistResource : RestResource
{

@ -14,9 +14,9 @@ using NzbDrone.Core.Tags;
using NzbDrone.Core.Music;
using Lidarr.Http.Extensions;
namespace Lidarr.Api.V3.Calendar
namespace Lidarr.Api.V1.Calendar
{
public class CalendarFeedModule : SonarrV3FeedModule
public class CalendarFeedModule : LidarrV1FeedModule
{
private readonly IAlbumService _albumService;
private readonly ITagService _tagService;

@ -5,10 +5,10 @@ using NzbDrone.Core.DecisionEngine;
using NzbDrone.Core.Music;
using NzbDrone.Core.ArtistStats;
using NzbDrone.SignalR;
using Lidarr.Api.V3.Albums;
using Lidarr.Api.V1.Albums;
using Lidarr.Http.Extensions;
namespace Lidarr.Api.V3.Calendar
namespace Lidarr.Api.V1.Calendar
{
public class CalendarModule : AlbumModuleWithSignalR
{

@ -11,7 +11,7 @@ using Lidarr.Http;
using Lidarr.Http.Extensions;
using Lidarr.Http.Validation;
namespace Lidarr.Api.V3.Commands
namespace Lidarr.Api.V1.Commands
{
public class CommandModule : LidarrRestModuleWithSignalR<CommandResource, CommandModel>, IHandle<CommandUpdatedEvent>
{

@ -5,7 +5,7 @@ using Newtonsoft.Json;
using NzbDrone.Core.Messaging.Commands;
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.Commands
namespace Lidarr.Api.V1.Commands
{
public class CommandResource : RestResource
{

@ -1,6 +1,6 @@
using NzbDrone.Core.Configuration;
namespace Lidarr.Api.V3.Config
namespace Lidarr.Api.V1.Config
{
public class DownloadClientConfigModule : SonarrConfigModule<DownloadClientConfigResource>
{

@ -1,7 +1,7 @@
using NzbDrone.Core.Configuration;
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.Config
namespace Lidarr.Api.V1.Config
{
public class DownloadClientConfigResource : RestResource
{

@ -10,7 +10,7 @@ using NzbDrone.Core.Validation;
using NzbDrone.Core.Validation.Paths;
using Lidarr.Http;
namespace Lidarr.Api.V3.Config
namespace Lidarr.Api.V1.Config
{
public class HostConfigModule : LidarrRestModule<HostConfigResource>
{

@ -4,7 +4,7 @@ using NzbDrone.Core.Configuration;
using NzbDrone.Core.Update;
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.Config
namespace Lidarr.Api.V1.Config
{
public class HostConfigResource : RestResource
{

@ -2,7 +2,7 @@
using NzbDrone.Core.Configuration;
using Lidarr.Http.Validation;
namespace Lidarr.Api.V3.Config
namespace Lidarr.Api.V1.Config
{
public class IndexerConfigModule : SonarrConfigModule<IndexerConfigResource>
{

@ -1,7 +1,7 @@
using NzbDrone.Core.Configuration;
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.Config
namespace Lidarr.Api.V1.Config
{
public class IndexerConfigResource : RestResource
{

@ -2,7 +2,7 @@
using NzbDrone.Core.Configuration;
using NzbDrone.Core.Validation.Paths;
namespace Lidarr.Api.V3.Config
namespace Lidarr.Api.V1.Config
{
public class MediaManagementConfigModule : SonarrConfigModule<MediaManagementConfigResource>
{

@ -2,7 +2,7 @@ using NzbDrone.Core.Configuration;
using NzbDrone.Core.MediaFiles;
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.Config
namespace Lidarr.Api.V1.Config
{
public class MediaManagementConfigResource : RestResource
{

@ -4,7 +4,7 @@ using NzbDrone.Core.Configuration;
using Lidarr.Http;
using NzbDrone.Core.Validation;
namespace Lidarr.Api.V3.Config
namespace Lidarr.Api.V1.Config
{
public class MetadataProviderConfigModule : SonarrConfigModule<MetadataProviderConfigResource>
{

@ -1,7 +1,7 @@
using NzbDrone.Core.Configuration;
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.Config
namespace Lidarr.Api.V1.Config
{
public class MetadataProviderConfigResource : RestResource
{

@ -10,7 +10,7 @@ using Lidarr.Http;
using Lidarr.Http.Extensions;
using Lidarr.Http.Mapping;
namespace Lidarr.Api.V3.Config
namespace Lidarr.Api.V1.Config
{
public class NamingConfigModule : LidarrRestModule<NamingConfigResource>
{

@ -1,6 +1,6 @@
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.Config
namespace Lidarr.Api.V1.Config
{
public class NamingConfigResource : RestResource
{

@ -1,6 +1,6 @@
using NzbDrone.Core.Organizer;
namespace Lidarr.Api.V3.Config
namespace Lidarr.Api.V1.Config
{
public class NamingExampleResource
{

@ -4,7 +4,7 @@ using NzbDrone.Core.Configuration;
using Lidarr.Http;
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.Config
namespace Lidarr.Api.V1.Config
{
public abstract class SonarrConfigModule<TResource> : LidarrRestModule<TResource> where TResource : RestResource, new()
{

@ -3,7 +3,7 @@ using System.Reflection;
using NzbDrone.Core.Configuration;
using Lidarr.Http;
namespace Lidarr.Api.V3.Config
namespace Lidarr.Api.V1.Config
{
public class UiConfigModule : SonarrConfigModule<UiConfigResource>
{

@ -1,7 +1,7 @@
using NzbDrone.Core.Configuration;
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.Config
namespace Lidarr.Api.V1.Config
{
public class UiConfigResource : RestResource
{

@ -2,7 +2,7 @@
using NzbDrone.Core.DiskSpace;
using Lidarr.Http;
namespace Lidarr.Api.V3.DiskSpace
namespace Lidarr.Api.V1.DiskSpace
{
public class DiskSpaceModule :LidarrRestModule<DiskSpaceResource>
{

@ -1,6 +1,6 @@
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.DiskSpace
namespace Lidarr.Api.V1.DiskSpace
{
public class DiskSpaceResource : RestResource
{

@ -1,6 +1,6 @@
using NzbDrone.Core.Download;
namespace Lidarr.Api.V3.DownloadClient
namespace Lidarr.Api.V1.DownloadClient
{
public class DownloadClientModule : ProviderModuleBase<DownloadClientResource, IDownloadClient, DownloadClientDefinition>
{

@ -1,7 +1,7 @@
using NzbDrone.Core.Download;
using NzbDrone.Core.Indexers;
namespace Lidarr.Api.V3.DownloadClient
namespace Lidarr.Api.V1.DownloadClient
{
public class DownloadClientResource : ProviderResource
{

@ -7,9 +7,9 @@ using NzbDrone.Common.Extensions;
using NzbDrone.Core.MediaFiles;
using Lidarr.Http.Extensions;
namespace Lidarr.Api.V3.FileSystem
namespace Lidarr.Api.V1.FileSystem
{
public class FileSystemModule : SonarrV3Module
public class FileSystemModule : LidarrV1Module
{
private readonly IFileSystemLookupService _fileSystemLookupService;
private readonly IDiskProvider _diskProvider;

@ -5,7 +5,7 @@ using NzbDrone.Core.Messaging.Events;
using NzbDrone.SignalR;
using Lidarr.Http;
namespace Lidarr.Api.V3.Health
namespace Lidarr.Api.V1.Health
{
public class HealthModule : LidarrRestModuleWithSignalR<HealthResource, HealthCheck>,
IHandle<HealthCheckCompleteEvent>

@ -4,7 +4,7 @@ using NzbDrone.Common.Http;
using NzbDrone.Core.HealthCheck;
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.Health
namespace Lidarr.Api.V1.Health
{
public class HealthResource : RestResource
{

@ -4,13 +4,13 @@ using NzbDrone.Core.Datastore;
using NzbDrone.Core.DecisionEngine;
using NzbDrone.Core.Download;
using NzbDrone.Core.History;
using Lidarr.Api.V3.Albums;
using Lidarr.Api.V3.Artist;
using Lidarr.Api.V3.Tracks;
using Lidarr.Api.V1.Albums;
using Lidarr.Api.V1.Artist;
using Lidarr.Api.V1.Tracks;
using Lidarr.Http;
using Lidarr.Http.Extensions;
namespace Lidarr.Api.V3.History
namespace Lidarr.Api.V1.History
{
public class HistoryModule : LidarrRestModule<HistoryResource>
{

@ -3,12 +3,12 @@ using System.Collections.Generic;
using NzbDrone.Core.History;
using NzbDrone.Core.Languages;
using NzbDrone.Core.Qualities;
using Lidarr.Api.V3.Albums;
using Lidarr.Api.V3.Artist;
using Lidarr.Api.V3.Tracks;
using Lidarr.Api.V1.Albums;
using Lidarr.Api.V1.Artist;
using Lidarr.Api.V1.Tracks;
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.History
namespace Lidarr.Api.V1.History
{
public class HistoryResource : RestResource
{

@ -1,6 +1,6 @@
using NzbDrone.Core.Indexers;
namespace Lidarr.Api.V3.Indexers
namespace Lidarr.Api.V1.Indexers
{
public class IndexerModule : ProviderModuleBase<IndexerResource, IIndexer, IndexerDefinition>
{

@ -1,6 +1,6 @@
using NzbDrone.Core.Indexers;
namespace Lidarr.Api.V3.Indexers
namespace Lidarr.Api.V1.Indexers
{
public class IndexerResource : ProviderResource
{

@ -14,7 +14,7 @@ using NzbDrone.Core.Parser.Model;
using Lidarr.Http.Extensions;
using HttpStatusCode = System.Net.HttpStatusCode;
namespace Lidarr.Api.V3.Indexers
namespace Lidarr.Api.V1.Indexers
{
public class ReleaseModule : ReleaseModuleBase
{

@ -2,7 +2,7 @@ using System.Collections.Generic;
using NzbDrone.Core.DecisionEngine;
using Lidarr.Http;
namespace Lidarr.Api.V3.Indexers
namespace Lidarr.Api.V1.Indexers
{
public abstract class ReleaseModuleBase : LidarrRestModule<ReleaseResource>
{

@ -9,7 +9,7 @@ using NzbDrone.Core.Download;
using NzbDrone.Core.Parser.Model;
using Lidarr.Http.Extensions;
namespace Lidarr.Api.V3.Indexers
namespace Lidarr.Api.V1.Indexers
{
class ReleasePushModule : ReleaseModuleBase
{

@ -8,7 +8,7 @@ using NzbDrone.Core.Parser.Model;
using NzbDrone.Core.Qualities;
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.Indexers
namespace Lidarr.Api.V1.Indexers
{
public class ReleaseResource : RestResource
{

@ -7,8 +7,8 @@
<ProjectGuid>{7140FF1F-79BE-492F-9188-B21A050BF708}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Lidarr.Api.V3</RootNamespace>
<AssemblyName>Lidarr.Api.V3</AssemblyName>
<RootNamespace>Lidarr.Api.V1</RootNamespace>
<AssemblyName>Lidarr.Api.V1</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
@ -167,8 +167,8 @@
<Compile Include="Artist\ArtistEditorDeleteResource.cs" />
<Compile Include="Artist\ArtistEditorResource.cs" />
<Compile Include="Artist\ArtistImportModule.cs" />
<Compile Include="SonarrV3FeedModule.cs" />
<Compile Include="SonarrV3Module.cs" />
<Compile Include="LidarrV1FeedModule.cs" />
<Compile Include="LidarrV1Module.cs" />
<Compile Include="Profiles\Quality\QualityProfileModule.cs" />
<Compile Include="Profiles\Quality\QualityProfileResource.cs" />
<Compile Include="Profiles\Quality\QualityProfileSchemaModule.cs" />

@ -0,0 +1,12 @@
using Nancy;
namespace Lidarr.Api.V1
{
public abstract class LidarrV1FeedModule : NancyModule
{
protected LidarrV1FeedModule(string resource)
: base("/feed/v1/" + resource.Trim('/'))
{
}
}
}

@ -0,0 +1,12 @@
using Nancy;
namespace Lidarr.Api.V1
{
public abstract class LidarrV1Module : NancyModule
{
protected LidarrV1Module(string resource)
: base("/api/v1/" + resource.Trim('/'))
{
}
}
}

@ -5,7 +5,7 @@ using NzbDrone.Common.EnvironmentInfo;
using NzbDrone.Common.Extensions;
using NzbDrone.Core.Configuration;
namespace Lidarr.Api.V3.Logs
namespace Lidarr.Api.V1.Logs
{
public class LogFileModule : LogFileModuleBase
{

@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Nancy;
@ -7,7 +7,7 @@ using NzbDrone.Common.Disk;
using NzbDrone.Core.Configuration;
using Lidarr.Http;
namespace Lidarr.Api.V3.Logs
namespace Lidarr.Api.V1.Logs
{
public abstract class LogFileModuleBase : LidarrRestModule<LogFileResource>
{
@ -44,7 +44,7 @@ namespace Lidarr.Api.V3.Logs
Id = i + 1,
Filename = filename,
LastWriteTime = _diskProvider.FileGetLastWrite(file),
ContentsUrl = string.Format("{0}/api/v3/{1}/{2}", _configFileProvider.UrlBase, Resource, filename),
ContentsUrl = string.Format("{0}/api/v1/{1}/{2}", _configFileProvider.UrlBase, Resource, filename),
DownloadUrl = string.Format("{0}/{1}/{2}", _configFileProvider.UrlBase, DownloadUrlRoot, filename)
});
}
@ -69,4 +69,4 @@ namespace Lidarr.Api.V3.Logs
protected abstract string DownloadUrlRoot { get; }
}
}
}

@ -1,7 +1,7 @@
using System;
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.Logs
namespace Lidarr.Api.V1.Logs
{
public class LogFileResource : RestResource
{

@ -1,7 +1,7 @@
using NzbDrone.Core.Instrumentation;
using Lidarr.Http;
namespace Lidarr.Api.V3.Logs
namespace Lidarr.Api.V1.Logs
{
public class LogModule : LidarrRestModule<LogResource>
{

@ -2,7 +2,7 @@
using NzbDrone.Core.Instrumentation;
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.Logs
namespace Lidarr.Api.V1.Logs
{
public class LogResource : RestResource
{

@ -7,7 +7,7 @@ using NzbDrone.Common.EnvironmentInfo;
using NzbDrone.Common.Extensions;
using NzbDrone.Core.Configuration;
namespace Lidarr.Api.V3.Logs
namespace Lidarr.Api.V1.Logs
{
public class UpdateLogFileModule : LogFileModuleBase
{

@ -4,7 +4,7 @@ using NzbDrone.Core.MediaFiles.TrackImport.Manual;
using NzbDrone.Core.Qualities;
using Lidarr.Http;
namespace Lidarr.Api.V3.ManualImport
namespace Lidarr.Api.V1.ManualImport
{
public class ManualImportModule : LidarrRestModule<ManualImportResource>
{

@ -3,14 +3,14 @@ using NzbDrone.Core.DecisionEngine;
using NzbDrone.Core.MediaFiles.TrackImport.Manual;
using NzbDrone.Core.Qualities;
using NzbDrone.Core.Languages;
using Lidarr.Api.V3.Artist;
using Lidarr.Api.V3.Albums;
using Lidarr.Api.V3.Tracks;
using Lidarr.Api.V1.Artist;
using Lidarr.Api.V1.Albums;
using Lidarr.Api.V1.Tracks;
using Lidarr.Http.REST;
using System.Collections.Generic;
using System.Linq;
namespace Lidarr.Api.V3.ManualImport
namespace Lidarr.Api.V1.ManualImport
{
public class ManualImportResource : RestResource
{

@ -6,9 +6,9 @@ using NzbDrone.Common.Disk;
using NzbDrone.Common.EnvironmentInfo;
using NzbDrone.Common.Extensions;
namespace Lidarr.Api.V3.MediaCovers
namespace Lidarr.Api.V1.MediaCovers
{
public class MediaCoverModule : SonarrV3Module
public class MediaCoverModule : LidarrV1Module
{
private static readonly Regex RegexResizedImage = new Regex(@"-\d+\.jpg$", RegexOptions.Compiled | RegexOptions.IgnoreCase);

@ -1,6 +1,6 @@
using NzbDrone.Core.Extras.Metadata;
namespace Lidarr.Api.V3.Metadata
namespace Lidarr.Api.V1.Metadata
{
public class MetadataModule : ProviderModuleBase<MetadataResource, IMetadata, MetadataDefinition>
{

@ -1,6 +1,6 @@
using NzbDrone.Core.Extras.Metadata;
namespace Lidarr.Api.V3.Metadata
namespace Lidarr.Api.V1.Metadata
{
public class MetadataResource : ProviderResource
{

@ -1,6 +1,6 @@
using NzbDrone.Core.Notifications;
namespace Lidarr.Api.V3.Notifications
namespace Lidarr.Api.V1.Notifications
{
public class NotificationModule : ProviderModuleBase<NotificationResource, INotification, NotificationDefinition>
{

@ -1,6 +1,6 @@
using NzbDrone.Core.Notifications;
namespace Lidarr.Api.V3.Notifications
namespace Lidarr.Api.V1.Notifications
{
public class NotificationResource : ProviderResource
{

@ -1,10 +1,10 @@
using NzbDrone.Common.Extensions;
using NzbDrone.Core.Parser;
using Lidarr.Api.V3.Albums;
using Lidarr.Api.V3.Artist;
using Lidarr.Api.V1.Albums;
using Lidarr.Api.V1.Artist;
using Lidarr.Http;
namespace Lidarr.Api.V3.Parse
namespace Lidarr.Api.V1.Parse
{
public class ParseModule : LidarrRestModule<ParseResource>
{

@ -1,10 +1,10 @@
using System.Collections.Generic;
using NzbDrone.Core.Parser.Model;
using Lidarr.Api.V3.Albums;
using Lidarr.Api.V3.Artist;
using Lidarr.Api.V1.Albums;
using Lidarr.Api.V1.Artist;
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.Parse
namespace Lidarr.Api.V1.Parse
{
public class ParseResource : RestResource
{

@ -9,7 +9,7 @@ using Lidarr.Http.Extensions;
using Lidarr.Http.REST;
using Lidarr.Http.Validation;
namespace Lidarr.Api.V3.Profiles.Delay
namespace Lidarr.Api.V1.Profiles.Delay
{
public class DelayProfileModule : LidarrRestModule<DelayProfileResource>
{

@ -4,7 +4,7 @@ using NzbDrone.Core.Indexers;
using NzbDrone.Core.Profiles.Delay;
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.Profiles.Delay
namespace Lidarr.Api.V1.Profiles.Delay
{
public class DelayProfileResource : RestResource
{

@ -3,7 +3,7 @@ using FluentValidation;
using NzbDrone.Core.Profiles.Languages;
using Lidarr.Http;
namespace Lidarr.Api.V3.Profiles.Language
namespace Lidarr.Api.V1.Profiles.Language
{
public class LanguageProfileModule : LidarrRestModule<LanguageProfileResource>
{

@ -3,7 +3,7 @@ using System.Linq;
using NzbDrone.Core.Profiles.Languages;
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.Profiles.Language
namespace Lidarr.Api.V1.Profiles.Language
{
public class LanguageProfileResource : RestResource
{

@ -2,7 +2,7 @@
using NzbDrone.Core.Profiles.Languages;
using Lidarr.Http;
namespace Lidarr.Api.V3.Profiles.Language
namespace Lidarr.Api.V1.Profiles.Language
{
public class LanguageProfileSchemaModule : LidarrRestModule<LanguageProfileResource>
{

@ -3,7 +3,7 @@ using System.Linq;
using FluentValidation;
using FluentValidation.Validators;
namespace Lidarr.Api.V3.Profiles.Language
namespace Lidarr.Api.V1.Profiles.Language
{
public static class LanguageValidation
{

@ -3,7 +3,7 @@ using FluentValidation;
using NzbDrone.Core.Profiles.Qualities;
using Lidarr.Http;
namespace Lidarr.Api.V3.Profiles.Quality
namespace Lidarr.Api.V1.Profiles.Quality
{
public class ProfileModule : LidarrRestModule<QualityProfileResource>
{

@ -3,7 +3,7 @@ using System.Linq;
using NzbDrone.Core.Profiles.Qualities;
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.Profiles.Quality
namespace Lidarr.Api.V1.Profiles.Quality
{
public class QualityProfileResource : RestResource
{

@ -3,7 +3,7 @@ using NzbDrone.Core.Profiles.Qualities;
using NzbDrone.Core.Qualities;
using Lidarr.Http;
namespace Lidarr.Api.V3.Profiles.Quality
namespace Lidarr.Api.V1.Profiles.Quality
{
public class QualityProfileSchemaModule : LidarrRestModule<QualityProfileResource>
{

@ -3,7 +3,7 @@ using System.Linq;
using FluentValidation;
using FluentValidation.Validators;
namespace Lidarr.Api.V3.Profiles.Quality
namespace Lidarr.Api.V1.Profiles.Quality
{
public static class QualityProfileValidation
{

@ -1,4 +1,4 @@
using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq;
using FluentValidation;
using FluentValidation.Results;
@ -9,7 +9,7 @@ using NzbDrone.Core.Validation;
using Lidarr.Http;
using Lidarr.Http.Extensions;
namespace Lidarr.Api.V3
namespace Lidarr.Api.V1
{
public abstract class ProviderModuleBase<TProviderResource, TProvider, TProviderDefinition> : LidarrRestModule<TProviderResource>
where TProviderDefinition : ProviderDefinition, new()

@ -4,7 +4,7 @@ using NzbDrone.Core.ThingiProvider;
using Lidarr.Http.ClientSchema;
using Lidarr.Http.REST;
namespace Lidarr.Api.V3
namespace Lidarr.Api.V1
{
public class ProviderResource : RestResource
{

@ -5,7 +5,7 @@ using NzbDrone.Core.Qualities;
using Lidarr.Http;
using Lidarr.Http.Extensions;
namespace Lidarr.Api.V3.Qualities
namespace Lidarr.Api.V1.Qualities
{
public class QualityDefinitionModule : LidarrRestModule<QualityDefinitionResource>
{

@ -3,7 +3,7 @@ using System.Linq;
using NzbDrone.Core.Qualities;
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.Qualities
namespace Lidarr.Api.V1.Qualities
{
public class QualityDefinitionResource : RestResource
{

@ -9,7 +9,7 @@ using Lidarr.Http;
using Lidarr.Http.Extensions;
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.Queue
namespace Lidarr.Api.V1.Queue
{
public class QueueActionModule : LidarrRestModule<QueueResource>
{

@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace Lidarr.Api.V3.Queue
namespace Lidarr.Api.V1.Queue
{
public class QueueBulkResource
{

@ -9,7 +9,7 @@ using NzbDrone.SignalR;
using Lidarr.Http;
using Lidarr.Http.Extensions;
namespace Lidarr.Api.V3.Queue
namespace Lidarr.Api.V1.Queue
{
public class QueueDetailsModule : LidarrRestModuleWithSignalR<QueueResource, NzbDrone.Core.Queue.Queue>,
IHandle<QueueUpdatedEvent>, IHandle<PendingReleasesUpdatedEvent>

@ -10,7 +10,7 @@ using NzbDrone.SignalR;
using Lidarr.Http;
using Lidarr.Http.Extensions;
namespace Lidarr.Api.V3.Queue
namespace Lidarr.Api.V1.Queue
{
public class QueueModule : LidarrRestModuleWithSignalR<QueueResource, NzbDrone.Core.Queue.Queue>,
IHandle<QueueUpdatedEvent>, IHandle<PendingReleasesUpdatedEvent>

@ -4,11 +4,11 @@ using System.Linq;
using NzbDrone.Core.Download.TrackedDownloads;
using NzbDrone.Core.Indexers;
using NzbDrone.Core.Qualities;
using Lidarr.Api.V3.Albums;
using Lidarr.Api.V3.Artist;
using Lidarr.Api.V1.Albums;
using Lidarr.Api.V1.Artist;
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.Queue
namespace Lidarr.Api.V1.Queue
{
public class QueueResource : RestResource
{

@ -9,7 +9,7 @@ using NzbDrone.SignalR;
using Lidarr.Http;
using Lidarr.Http.Extensions;
namespace Lidarr.Api.V3.Queue
namespace Lidarr.Api.V1.Queue
{
public class QueueStatusModule : LidarrRestModuleWithSignalR<QueueStatusResource, NzbDrone.Core.Queue.Queue>,
IHandle<QueueUpdatedEvent>, IHandle<PendingReleasesUpdatedEvent>

@ -1,6 +1,6 @@
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.Queue
namespace Lidarr.Api.V1.Queue
{
public class QueueStatusResource : RestResource
{

@ -4,7 +4,7 @@ using NzbDrone.Core.RemotePathMappings;
using NzbDrone.Core.Validation.Paths;
using Lidarr.Http;
namespace Lidarr.Api.V3.RemotePathMappings
namespace Lidarr.Api.V1.RemotePathMappings
{
public class RemotePathMappingModule : LidarrRestModule<RemotePathMappingResource>
{

@ -3,7 +3,7 @@ using System.Linq;
using NzbDrone.Core.RemotePathMappings;
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.RemotePathMappings
namespace Lidarr.Api.V1.RemotePathMappings
{
public class RemotePathMappingResource : RestResource
{

@ -4,7 +4,7 @@ using NzbDrone.Common.Extensions;
using NzbDrone.Core.Restrictions;
using Lidarr.Http;
namespace Lidarr.Api.V3.Restrictions
namespace Lidarr.Api.V1.Restrictions
{
public class RestrictionModule : LidarrRestModule<RestrictionResource>
{

@ -3,7 +3,7 @@ using System.Linq;
using NzbDrone.Core.Restrictions;
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.Restrictions
namespace Lidarr.Api.V1.Restrictions
{
public class RestrictionResource : RestResource
{

@ -5,7 +5,7 @@ using NzbDrone.Core.Validation.Paths;
using NzbDrone.SignalR;
using Lidarr.Http;
namespace Lidarr.Api.V3.RootFolders
namespace Lidarr.Api.V1.RootFolders
{
public class RootFolderModule : LidarrRestModuleWithSignalR<RootFolderResource, RootFolder>
{

@ -3,7 +3,7 @@ using System.Linq;
using NzbDrone.Core.RootFolders;
using Lidarr.Http.REST;
namespace Lidarr.Api.V3.RootFolders
namespace Lidarr.Api.V1.RootFolders
{
public class RootFolderResource : RestResource
{

@ -4,7 +4,7 @@ using System.Linq;
using NzbDrone.Core.Backup;
using Lidarr.Http;
namespace Lidarr.Api.V3.System.Backup
namespace Lidarr.Api.V1.System.Backup
{
public class BackupModule : LidarrRestModule<BackupResource>
{

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save