| Method | HTTP Request | Description |
|---|---|---|
| URIs relative to https://www.filemaster-aiss.appspot.com/api | ||
| getAll | GET /files | Get a list of all files in the service with all their attributes |
| get | GET /files/fileID | Get all the attributes of the selected file. "404 Not Found" is returned if the fileID doesn't exists. |
| insert |
POST /files POST /files/fileID |
Insert a new file in the root if there is no ID in the URI or inside the ID folder. "400 Bad Request" is returned if the name is empty or the parent isn't a folder. |
| modify | PUT /files/fileID | Modify the attributes of the selected file except his ID. "404 Not Found" is returned if the fileID doesn't exists. |
| delete | DELETE /files/fileID | Delete the file or folder and all the subfiles. "404 Not Found" is returned if the fileID doesn't exists. |
The metadata for a file.
{
"name": string,
"id": string,
"mimeType": string,
"parentId": string,
"size": string,
"isFolder": boolean
}
| Property name | Value | Description | Notes |
|---|---|---|---|
| name | string | The name of the file. | Writable |
| id | string | The ID of the file. | |
| mimeType | string | The MIME type of the file. | Writable |
| parentId | string | The parent ID of the file. | Writable |
| size | string | The size of the file. | |
| isFolder | boolean | Whether the file is a folder. | Writable |