-
Notifications
You must be signed in to change notification settings - Fork 252
Description
Changes in the API for v2.7.0
-
getfileAPI method should be RENAMED togetinfoand return either file or folder stats. Restriction to handle files only should be removed. -
getfolderAPI method should be RENAMED toreadfolder. No changes in functionality. -
API methods
readfile,getimageanddownloadshould USE THE SAME FLOW to read file and write it to the output. The difference will be in headers and restrictions (validation checks) only. Read/Write flow features which should be implemented (preferably):- read in small chunks in order to handle big size files;
- handle HTTP RANGE for media files;
-
editfileAPI method should be REMOVED, instead of it thereadfileis used at the client-side. -
downloadAPI method should be simplified and handled with a single request. Implemented within the commit af60b30 -
The error handling. When fire an error you have to add the following HTTP headers to the response:
header('Content-Type: application/json');
header('HTTP/1.1 500 Internal Server Error');Also API error format sould correspond to JSON API standard. Imlemented within #210