Download a Text File
This operation allows you to download a copy of a named file from the servers storage folder.
HTTP method |
GET
|
URI |
/FileService/text/<filename>
|
Request headers |
Host: <server_dns_or_ip>[:<port>] Accept: <mime_type>
|
Request body |
n/a
|
Response headers |
Content-Length: <int> Content-Type: <mime_type> Date: <date_time> Server: Microsoft-HTTPAPI/2.0
|
Response body |
A JSON or XML array of strings containing the records from the text file.
|
HTTP result codes |
HTTP 200 (OK) that the file exists and its content was returned in the response body. HTTP 404 (not found) indicates that the file does not exist.
|
Response Data Format
The format of the returned data is determined by the value of the HTTP request Accept header that you pass.
Response Format |
MIME Type |
JSON |
application/json |
XML |
application/xml |
If you do not pass an Accept header then the default response will be a JSON array.