diff options
| author | Andrew Mahone <andrew.mahone@gmail.com> | 2019-10-22 10:57:15 -0400 |
|---|---|---|
| committer | Andrew Mahone <andrew.mahone@gmail.com> | 2019-10-22 11:54:59 -0400 |
| commit | 20727906c85c0d519eda86194b081a22f60dcf61 (patch) | |
| tree | 74cc63587909d1ea4ed7e7c6fa776269e386c2ac /MediaBrowser.Api/Attachments/AttachmentService.cs | |
| parent | 01b1c847e95c28ec780dfe3f2c7d1b33ffd08bd0 (diff) | |
Use attachment filename if available.
Diffstat (limited to 'MediaBrowser.Api/Attachments/AttachmentService.cs')
| -rw-r--r-- | MediaBrowser.Api/Attachments/AttachmentService.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/MediaBrowser.Api/Attachments/AttachmentService.cs b/MediaBrowser.Api/Attachments/AttachmentService.cs index 4c7d5eccc..d8771f8c0 100644 --- a/MediaBrowser.Api/Attachments/AttachmentService.cs +++ b/MediaBrowser.Api/Attachments/AttachmentService.cs @@ -20,7 +20,7 @@ using MimeTypes = MediaBrowser.Model.Net.MimeTypes; namespace MediaBrowser.Api.Attachments { - [Route("/Videos/{Id}/{MediaSourceId}/Attachments/{Index}/Attachment", "GET", Summary = "Gets specified attachment.")] + [Route("/Videos/{Id}/{MediaSourceId}/Attachments/{Index}/{Filename}", "GET", Summary = "Gets specified attachment.")] public class GetAttachment { [ApiMember(Name = "Id", Description = "Item Id", IsRequired = true, DataType = "string", ParameterType = "path", Verb = "GET")] @@ -31,6 +31,9 @@ namespace MediaBrowser.Api.Attachments [ApiMember(Name = "Index", Description = "The attachment stream index", IsRequired = true, DataType = "int", ParameterType = "path", Verb = "GET")] public int Index { get; set; } + + [ApiMember(Name = "Filename", Description = "The attachment filename", IsRequired = false, DataType = "string", ParameterType = "path", Verb = "GET")] + public string Filename { get; set; } } public class AttachmentService : BaseApiService |
