GET API/AttachFile/MetaQuery

Searches uploaded files.
Takes the metadata of the attached file as the GET parameter in the format "MetaKey1=MetaValue1&MetaKey2=MetaValue2".

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of FileInfoViewModel
NameDescriptionTypeAdditional information
FileId

File ID

string

None.

FileName

File name

string

None.

ContentType

Content-Type

string

None.

FileLength

File length

integer

None.

MetaList

Meta

Collection of MetaViewModel

None.

Response Formats

application/json

Sample:
[
  {
    "FileId": "sample string 1",
    "FileName": "sample string 2",
    "ContentType": "sample string 3",
    "FileLength": 4,
    "MetaList": [
      {
        "MetaKey": "sample string 1",
        "MetaValue": "sample string 2"
      },
      {
        "MetaKey": "sample string 1",
        "MetaValue": "sample string 2"
      }
    ]
  },
  {
    "FileId": "sample string 1",
    "FileName": "sample string 2",
    "ContentType": "sample string 3",
    "FileLength": 4,
    "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",
    "ContentType": "sample string 3",
    "FileLength": 4,
    "MetaList": [
      {
        "MetaKey": "sample string 1",
        "MetaValue": "sample string 2"
      },
      {
        "MetaKey": "sample string 1",
        "MetaValue": "sample string 2"
      }
    ]
  },
  {
    "FileId": "sample string 1",
    "FileName": "sample string 2",
    "ContentType": "sample string 3",
    "FileLength": 4,
    "MetaList": [
      {
        "MetaKey": "sample string 1",
        "MetaValue": "sample string 2"
      },
      {
        "MetaKey": "sample string 1",
        "MetaValue": "sample string 2"
      }
    ]
  }
]

application/xml

Sample:
<ArrayOfFileInfoViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JP.DataHub.ApiWeb.Models.AttachFile">
  <FileInfoViewModel>
    <ContentType>sample string 3</ContentType>
    <FileId>sample string 1</FileId>
    <FileLength>4</FileLength>
    <FileName>sample string 2</FileName>
    <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>
  </FileInfoViewModel>
  <FileInfoViewModel>
    <ContentType>sample string 3</ContentType>
    <FileId>sample string 1</FileId>
    <FileLength>4</FileLength>
    <FileName>sample string 2</FileName>
    <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>
  </FileInfoViewModel>
</ArrayOfFileInfoViewModel>

text/xml

Sample:
<ArrayOfFileInfoViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JP.DataHub.ApiWeb.Models.AttachFile">
  <FileInfoViewModel>
    <ContentType>sample string 3</ContentType>
    <FileId>sample string 1</FileId>
    <FileLength>4</FileLength>
    <FileName>sample string 2</FileName>
    <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>
  </FileInfoViewModel>
  <FileInfoViewModel>
    <ContentType>sample string 3</ContentType>
    <FileId>sample string 1</FileId>
    <FileLength>4</FileLength>
    <FileName>sample string 2</FileName>
    <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>
  </FileInfoViewModel>
</ArrayOfFileInfoViewModel>