GET API/AttachFile/GetMeta?FileId={FileId}&Key={Key}
Obtains the metadata of an attached file.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
FileId |
File ID |
string |
Required |
Key |
Key |
string |
None. |
Body Parameters
None.
Response Information
Resource Description
FileMetaViewModelName | Description | Type | Additional information |
---|---|---|---|
FileId |
File ID |
string |
None. |
FileName |
File name |
string |
None. |
Key |
Key |
string |
None. |
ContentType |
ContentType |
string |
None. |
FileLength |
File length |
integer |
None. |
IsDrm |
DRM-protected |
boolean |
None. |
DrmType |
DRM type |
string |
None. |
DrmKey |
DRM key |
string |
None. |
MetaList |
Meta |
Collection of MetaViewModel |
None. |
Response Formats
application/json
Sample:
{ "FileId": "sample string 1", "FileName": "sample string 2", "Key": "sample string 3", "ContentType": "sample string 4", "FileLength": 5, "IsDrm": true, "DrmType": "sample string 7", "DrmKey": "sample string 8", "MetaList": [ { "MetaKey": "sample string 1", "MetaValue": "sample string 2" }, { "MetaKey": "sample string 1", "MetaValue": "sample string 2" } ] }
text/json
Sample:
{ "FileId": "sample string 1", "FileName": "sample string 2", "Key": "sample string 3", "ContentType": "sample string 4", "FileLength": 5, "IsDrm": true, "DrmType": "sample string 7", "DrmKey": "sample string 8", "MetaList": [ { "MetaKey": "sample string 1", "MetaValue": "sample string 2" }, { "MetaKey": "sample string 1", "MetaValue": "sample string 2" } ] }
application/xml
Sample:
<FileMetaViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JP.DataHub.ApiWeb.Models.AttachFile"> <ContentType>sample string 4</ContentType> <DrmKey>sample string 8</DrmKey> <DrmType>sample string 7</DrmType> <FileId>sample string 1</FileId> <FileLength>5</FileLength> <FileName>sample string 2</FileName> <IsDrm>true</IsDrm> <Key>sample string 3</Key> <MetaList> <MetaViewModel> <MetaKey>sample string 1</MetaKey> <MetaValue>sample string 2</MetaValue> </MetaViewModel> <MetaViewModel> <MetaKey>sample string 1</MetaKey> <MetaValue>sample string 2</MetaValue> </MetaViewModel> </MetaList> </FileMetaViewModel>
text/xml
Sample:
<FileMetaViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JP.DataHub.ApiWeb.Models.AttachFile"> <ContentType>sample string 4</ContentType> <DrmKey>sample string 8</DrmKey> <DrmType>sample string 7</DrmType> <FileId>sample string 1</FileId> <FileLength>5</FileLength> <FileName>sample string 2</FileName> <IsDrm>true</IsDrm> <Key>sample string 3</Key> <MetaList> <MetaViewModel> <MetaKey>sample string 1</MetaKey> <MetaValue>sample string 2</MetaValue> </MetaViewModel> <MetaViewModel> <MetaKey>sample string 1</MetaKey> <MetaValue>sample string 2</MetaValue> </MetaViewModel> </MetaList> </FileMetaViewModel>