Remove file from server - nokia-wroclaw/innovativeproject-meetingdataexchange GitHub Wiki
URL:
{serverAddress}/api/files/remove
Method:
POST
Content-type:
application/json
Method for web application:
public static ObjectNode web_remove(String login, String sid, String meetingid, String fileid)
in controllers.FilesManagement
Description:
Host of meeting or author of file can remove them from meeting
Input:
{
"login": "your login",
"sid": "id of current session"
"fileid": "id of file"
}
Output OK:
{
"status": "ok"
}
Output error:
{
"status": "failed",
"reason": "reason of error"
}
Types of reasons:
json excepted
incorrect sid
access denied
already finished