List Files¶
/api/repositories/{repository}/files
Parameter | Type | Purpose |
---|---|---|
repository | string | The name of the Repository to access |
Get¶
-
GET
/api/repositories/
(string: repository)/files
¶ Lists files and directories within /export virtual directory
GET /api/repositories/jupiter/files HTTP/1.1
Accept: application/json
Response Code | Reason |
---|---|
200 | No error |
400 | Invalid request |
500 | Server error |
The response is a Standard Response, with a list of files within the virtual directory.
The columns
array will contain the list of columns for each data row.
Human Name | Column Name | Description |
---|---|---|
Directory | directory | Is it a directory |
Name | name | File name |
Size | size | File size |
Modified | modified | Modified Date |
rows
will contain the files details of the corresponding virtual directory:
{
"rows": [
[
"0",
"1421163564682lib2.ebr",
"691",
"1421163564"
],
[
"1",
"old",
"4096",
"1425401198"
]
]
}
Post¶
-
POST
/api/repositories/
(string: repository)/files
¶
POST /api/repositories/jupiter/files HTTP/1.1
Content-Type: application/json
{
"directory": "/export"
}
Response Code | Reason |
---|---|
200 | File uploaded to the server |
500 | Server error |
directory
elements represents the virtual directory from where the files have to be listed.
The columns
array will contain the list of columns for each data row.
Human Name | Column Name | Description |
---|---|---|
Directory | directory | Is it a directory |
Name | name | File name |
Size | size | File size |
Modified | modified | Modified Date |
rows
will contain the files details of the corresponding virtual directory:
{
"rows": [
[
"0",
"1421163564682lib2.ebr",
"691",
"1421163564"
],
[
"1",
"old",
"4096",
"1425401198"
]
]
}