GET sitefiles/{siteId}

Gets the site's attached files list.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
siteId

The id of the site

integer

Required

Body Parameters

None.

Response Information

Resource Description

ResponseVMOfSiteFile
NameDescriptionTypeAdditional information
Resources

Collection of SiteFile

None.

ResultCode

FwApiResultCode

None.

ResultMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Resources": [
    {
      "fileid": 1,
      "filename": "sample string 2",
      "filetype": "sample string 3",
      "size": 4,
      "uploaddate": "sample string 5",
      "siteid": 6,
      "stream": null
    },
    {
      "fileid": 1,
      "filename": "sample string 2",
      "filetype": "sample string 3",
      "size": 4,
      "uploaddate": "sample string 5",
      "siteid": 6,
      "stream": null
    }
  ],
  "ResultCode": 0,
  "ResultMessage": "sample string 1"
}

application/xml, text/xml

Sample:
<ResponseVMOfSiteFileseEXlvmY xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FW.WebApi2.ViewModels">
  <ResultCode>Ok</ResultCode>
  <ResultMessage>sample string 1</ResultMessage>
  <Resources xmlns:d2p1="http://schemas.datacontract.org/2004/07/FW.SiteFilesManager.Models">
    <d2p1:SiteFile>
      <d2p1:fileid>1</d2p1:fileid>
      <d2p1:filename>sample string 2</d2p1:filename>
      <d2p1:filetype>sample string 3</d2p1:filetype>
      <d2p1:siteid>6</d2p1:siteid>
      <d2p1:size>4</d2p1:size>
      <d2p1:stream xmlns:d4p1="http://schemas.datacontract.org/2004/07/System.IO" i:nil="true" />
      <d2p1:uploaddate>sample string 5</d2p1:uploaddate>
    </d2p1:SiteFile>
    <d2p1:SiteFile>
      <d2p1:fileid>1</d2p1:fileid>
      <d2p1:filename>sample string 2</d2p1:filename>
      <d2p1:filetype>sample string 3</d2p1:filetype>
      <d2p1:siteid>6</d2p1:siteid>
      <d2p1:size>4</d2p1:size>
      <d2p1:stream xmlns:d4p1="http://schemas.datacontract.org/2004/07/System.IO" i:nil="true" />
      <d2p1:uploaddate>sample string 5</d2p1:uploaddate>
    </d2p1:SiteFile>
  </Resources>
</ResponseVMOfSiteFileseEXlvmY>