This repository was archived by the owner on Dec 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
API documentation
Nikita Korshunov edited this page Mar 24, 2019
·
2 revisions
| Specification | Value |
|---|---|
| API Version | v0.1.0 |
| Resource Path | Operation | Description |
|---|---|---|
| /api/directory | /api/directory-get | Gets directory information. |
| /api/directory | /api/directory-delete | Deletes directory. |
| /api/directory/search | /api/directory/search-get | Searches directory. |
| /api/directory/rename | /api/directory/rename-put | Renames directory. |
| /services/download/directory | /services/download/directory-get | Downloads the contents of the directory as a zip archive. |
| /services/download/file | /services/download/file-get | Downloads a file. |
| /api/drives | /api/drives-get | Gets a list of drives. |
| /api/file | /api/file-get | Gets file information. |
| /api/file | /api/file-delete | Deletes file. |
| /api/file/rename | /api/file/rename-put | Renames file. |
| /api/host | /api/host-get | Gets host information. |
| Param Name | Param Type | Data Type | Description | Required? |
|---|---|---|---|---|
| directoryPath | query | string | The directory path. | yes |
| Code | Type | Description |
|---|---|---|
| 200 | DirectoryModel | Success |
| Param Name | Param Type | Data Type | Description | Required? |
|---|---|---|---|---|
| directoryPath | query | string | The directory path. | yes |
| Code | Type | Description |
|---|---|---|
| 200 | Success |
| Param Name | Param Type | Data Type | Description | Required? |
|---|---|---|---|---|
| query | query | string | The query with directory path. |
| Code | Type | Description |
|---|---|---|
| 200 | array | Success |
| Param Name | Param Type | Data Type | Description | Required? |
|---|---|---|---|---|
| directoryPath | query | string | The directory path. | yes |
| body | body | RenameParams | These are the parameters for renaming. |
| Code | Type | Description |
|---|---|---|
| 200 | DirectoryModel | Success |
| Param Name | Param Type | Data Type | Description | Required? |
|---|---|---|---|---|
| directoryPath | query | string | The directory path. | yes |
| Code | Type | Description |
|---|---|---|
| 200 | Success |
| Param Name | Param Type | Data Type | Description | Required? |
|---|---|---|---|---|
| filePath | query | string | The file path. | yes |
| Code | Type | Description |
|---|---|---|
| 200 | Success |
| Code | Type | Description |
|---|---|---|
| 200 | array | Success |
| Param Name | Param Type | Data Type | Description | Required? |
|---|---|---|---|---|
| filePath | query | string | The file path. | yes |
| Code | Type | Description |
|---|---|---|
| 200 | FileModel | Success |
| Param Name | Param Type | Data Type | Description | Required? |
|---|---|---|---|---|
| filePath | query | string | The file path. | yes |
| Code | Type | Description |
|---|---|---|
| 200 | Success |
| Param Name | Param Type | Data Type | Description | Required? |
|---|---|---|---|---|
| filePath | query | string | The file path. | yes |
| body | body | RenameParams | These are the parameters for renaming. |
| Code | Type | Description |
|---|---|---|
| 200 | FileModel | Success |
| Code | Type | Description |
|---|---|---|
| 200 | HostModel | Success |
| Field Name | Field Type | Description | Required? | Read Only? |
|---|---|---|---|---|
| directories | array | The directories. | yes | |
| - Item | DirectoryModel | |||
| files | array | The files. | yes | |
| - Item | FileModel | |||
| Field Name | Field Type | Description | Required? | Read Only? |
|---|---|---|---|---|
| name | string | Gets or sets a new name. | yes | |
| Field Name | Field Type | Description | Required? | Read Only? |
|---|---|---|---|---|
| name | string | Gets the host name. | yes | |
| platform | string | Gets the host platform. | yes | |
| time | string | Gets the system time of the host. | yes |