Add comment to file or note - nokia-wroclaw/innovativeproject-meetingdataexchange GitHub Wiki
URL:
{serverAddress}/api/comment/add
Method:
POST
Content-type:
application/json
Method for web application:
private static ObjectNode web_comment(String login, String sid, String fileid, String content)
in controllers.FilesManagement
Description:
Adds comment to specified file
Input:
{
"login": "your login",
"sid": "id of current session",
"fileid": "id of file which you want to comment",
"content": "content of comment"
}
Output OK:
{
"status": "ok"
}
Output error:
{
"status": "failed",
"reason": "reason of error"
}
Types of reasons:
json excepted
incorrect data
- incorrect value inabilityToSendFiles
, or other value is incorrectincorrect sid
- incorrect session id