aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Library/FileOrganizationService.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2016-02-09 13:07:32 -0500
committerLuke <luke.pulverenti@gmail.com>2016-02-09 13:07:32 -0500
commit6caadbbc382d7f6530e5496bd6b7a28c5610dc72 (patch)
tree6f06a64687c921e51fb53be4dd42fc20d4260a67 /MediaBrowser.Api/Library/FileOrganizationService.cs
parentbbefb03bcf5b1a43691f14858d30ecc603b55c3d (diff)
parentde39408217b249102e38b8ef604d1777c090d86b (diff)
Merge pull request #1438 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Api/Library/FileOrganizationService.cs')
-rw-r--r--MediaBrowser.Api/Library/FileOrganizationService.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/MediaBrowser.Api/Library/FileOrganizationService.cs b/MediaBrowser.Api/Library/FileOrganizationService.cs
index a08cc099e..c45552baa 100644
--- a/MediaBrowser.Api/Library/FileOrganizationService.cs
+++ b/MediaBrowser.Api/Library/FileOrganizationService.cs
@@ -74,7 +74,7 @@ namespace MediaBrowser.Api.Library
public bool RememberCorrection { get; set; }
}
- [Route("/Library/FileOrganizationSmartMatch", "GET", Summary = "Gets smart match entries")]
+ [Route("/Library/FileOrganizations/SmartMatches", "GET", Summary = "Gets smart match entries")]
public class GetSmartMatchInfos : IReturn<QueryResult<SmartMatchInfo>>
{
/// <summary>
@@ -92,13 +92,13 @@ namespace MediaBrowser.Api.Library
public int? Limit { get; set; }
}
- [Route("/Library/FileOrganizationSmartMatch/{Id}/Delete", "POST", Summary = "Deletes a smart match entry")]
+ [Route("/Library/FileOrganizations/SmartMatches", "DELETE", Summary = "Deletes a smart match entry")]
public class DeleteSmartMatchEntry
{
- [ApiMember(Name = "Id", Description = "Item ID", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "POST")]
- public string Id { get; set; }
+ [ApiMember(Name = "Name", Description = "Name", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "DELETE")]
+ public string Name { get; set; }
- [ApiMember(Name = "MatchString", Description = "SmartMatch String", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "POST")]
+ [ApiMember(Name = "MatchString", Description = "SmartMatch String", IsRequired = true, DataType = "string", ParameterType = "query", Verb = "DELETE")]
public string MatchString { get; set; }
}
@@ -172,7 +172,7 @@ namespace MediaBrowser.Api.Library
public void Post(DeleteSmartMatchEntry request)
{
- _iFileOrganizationService.DeleteSmartMatchEntry(request.Id, request.MatchString);
+ _iFileOrganizationService.DeleteSmartMatchEntry(request.Name, request.MatchString);
}
}
}