Download file from server - nokia-wroclaw/innovativeproject-meetingdataexchange GitHub Wiki

URL:

{serverAddress}/api/files/download/$login/$sid/$fileid

Method:

GET

Content-type:

?

Method for web application:

public static Object web_download(String login, String sid, String fileid) in controllers.FilesManagement

Description:

Downloads file from server

Input:

$login = your login
$sid = id of current session
$fileid id of file

Output OK:

RAW file

Output error:

{
  "status": "failed",
  "reason": "reason of error"
}

Types of reasons:

  • incorrect sid - incorrect session id
  • you are not a member
  • file not found