REST interface for the social networking library (comments).
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| media type | data type |
|---|---|
| application/json | Comment (JSON) |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
POST /2/lib/add-comment-lib
Content-Type: application/json
Accept: application/json
Authorization: ...
{
"thumbnailURL" : "...",
"key" : "...",
"time" : 12345,
"text" : "...",
"edit" : true,
"feedid" : "...",
"userid" : "...",
"lastEditTime" : 12345,
"fullName" : "..."
}
HTTP/1.1 201 Created
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| userid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
POST /2/lib/check-unread-messages-notification-lib
Content-Type: application/json
Accept: application/json
Authorization: ...
...
HTTP/1.1 201 Created
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| userid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
POST /2/lib/check-unread-notification-lib
Content-Type: application/json
Accept: application/json
Authorization: ...
...
HTTP/1.1 201 Created
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| commentid | query | |
| postid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
POST /2/lib/delete-comment-lib
Content-Type: application/json
Accept: application/json
Authorization: ...
...
HTTP/1.1 201 Created
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| postid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
POST /2/lib/delete-post-lib
Content-Type: application/json
Accept: application/json
Authorization: ...
...
HTTP/1.1 201 Created
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| media type | data type |
|---|---|
| application/json | Comment (JSON) |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
POST /2/lib/edit-comment-lib
Content-Type: application/json
Accept: application/json
Authorization: ...
{
"thumbnailURL" : "...",
"key" : "...",
"time" : 12345,
"text" : "...",
"edit" : true,
"feedid" : "...",
"userid" : "...",
"lastEditTime" : 12345,
"fullName" : "..."
}
HTTP/1.1 201 Created
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| userid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
GET /2/lib/get-all-liked-posts-by-user-lib
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| postid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
GET /2/lib/get-all-likes-by-post-lib
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
...
| name | type | description | constraints |
|---|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources | |
| Content-Type | header | application/json | |
| limit | query | required int | |
| userid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
GET /2/lib/get-all-notifications-user
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| appid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
GET /2/lib/get-all-posts-by-app-lib
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| userid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
GET /2/lib/get-all-posts-by-user-lib
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| vreid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
GET /2/lib/get-all-posts-by-vre-lib
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
GET /2/lib/get-all-vre-ids-lib
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| postid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
GET /2/lib/get-attachment-by-postid-lib
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
...
| name | type | description | constraints |
|---|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources | |
| Content-Type | header | application/json | |
| postid | query | required |
| code | condition |
|---|---|
| 200 | The list of comments is put into the 'result' field |
| 500 | The error is reported into the 'message' field of the returned object |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
GET /2/lib/get-comments-by-post-id-lib
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| vreid | query |
| media type | data type |
|---|---|
| application/json | array of InviteStatus (JSON) |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
POST /2/lib/get-invited-email-by-vre-lib
Content-Type: application/json
Accept: application/json
Authorization: ...
"PENDING"
HTTP/1.1 201 Created
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| userid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
GET /2/lib/get-notification-preference-lib
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
GET /2/lib/get-portal-privacy-level-posts-lib
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
...
| name | type | description | constraints |
|---|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources | |
| Content-Type | header | application/json | |
| from | query | required int | |
| quantity | query | required int | |
| userid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
GET /2/lib/get-range-notifications-user
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
...
| name | type | description | constraints |
|---|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources | |
| Content-Type | header | application/json | |
| time | query | required long | |
| userid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
GET /2/lib/get-recent-commented-posts-by-user-lib
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
...
| name | type | description | constraints |
|---|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources | |
| Content-Type | header | application/json | |
| time | query | required long, min: 0 | |
| username | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
GET /2/lib/get-recent-comments-by-user-and-date-lib
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
...
| name | type | description | constraints |
|---|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources | |
| Content-Type | header | application/json | |
| time | query | required long | |
| userid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
GET /2/lib/get-recent-posts-by-user-date-lib
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
...
| name | type | description | constraints |
|---|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources | |
| Content-Type | header | application/json | |
| quantity | query | required int | |
| userid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
GET /2/lib/get-recent-posts-by-user-lib
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
...
| name | type | description | constraints |
|---|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources | |
| Content-Type | header | application/json | |
| quantity | query | required int | |
| vreid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
GET /2/lib/get-recent-posts-by-vre-lib
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
...
| name | type | description | constraints |
|---|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources | |
| Content-Type | header | application/json | |
| from | query | required int | |
| quantity | query | required int | |
| vreid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
GET /2/lib/get-recent-posts-by-vre-range-lib
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| userid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
GET /2/lib/get-unread-notifications-user
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| type | query | |
| userid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
POST /2/lib/get-user-notification-channels-lib
Content-Type: application/json
Accept: application/json
Authorization: ...
...
HTTP/1.1 201 Created
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| hashtag | query | |
| vreid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
GET /2/lib/get-vre-post-by-hashtag-lib
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| query | ||
| vreid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
GET /2/lib/is-existing-invite-lib
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| media type | data type |
|---|---|
| application/json | Like (JSON) |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
POST /2/lib/like-lib
Content-Type: application/json
Accept: application/json
Authorization: ...
{
"fullName" : "...",
"userid" : "...",
"key" : "...",
"thumbnailURL" : "...",
"feedid" : "...",
"time" : 12345
}
HTTP/1.1 201 Created
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| commentid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
GET /2/lib/read-comment-by-id-lib
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| inviteid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
GET /2/lib/read-invite-lib
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| notid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
GET /2/lib/read-notification-lib
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| postid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
GET /2/lib/read-post-lib
Content-Type: */*
Accept: application/json
Authorization: ...
...
HTTP/1.1 200 OK
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| media type | data type |
|---|---|
| application/json | Post (JSON) |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
POST /2/lib/save-app-post-lib
Content-Type: application/json
Accept: application/json
Authorization: ...
{
"entityId" : "...",
"email" : "...",
"likesNo" : "...",
"type" : "JOIN",
"vreid" : "...",
"description" : "...",
"multiFileUpload" : true,
"commentsNo" : "...",
"time" : 12345,
"privacy" : "VRES",
"fullName" : "...",
"uriThumbnail" : "...",
"uri" : "...",
"linkDescription" : "...",
"linkTitle" : "...",
"thumbnailURL" : "...",
"key" : "...",
"applicationFeed" : true,
"linkHost" : "..."
}
HTTP/1.1 201 Created
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| postid | query |
| media type | data type |
|---|---|
| application/json | Attachment (JSON) |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
POST /2/lib/save-attachment-lib
Content-Type: application/json
Accept: application/json
Authorization: ...
{
"uri" : "...",
"name" : "...",
"id" : "...",
"description" : "...",
"mimeType" : "...",
"thumbnailURL" : "..."
}
HTTP/1.1 201 Created
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| media type | data type |
|---|---|
| application/json | Invite (JSON) |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
POST /2/lib/save-invite-lib
Content-Type: application/json
Accept: application/json
Authorization: ...
{
"vreid" : "...",
"status" : "ACCEPTED",
"senderUserId" : "...",
"senderFullName" : "...",
"key" : "...",
"invitedEmail" : "...",
"controlCode" : "...",
"time" : 12345
}
HTTP/1.1 201 Created
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| media type | data type |
|---|---|
| application/json | Notification (JSON) |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
POST /2/lib/save-notification-lib
Content-Type: application/json
Accept: application/json
Authorization: ...
{
"senderid" : "...",
"type" : "CAT_ITEM_REJECTED",
"senderFullName" : "...",
"subjectid" : "...",
"time" : 12345,
"userid" : "...",
"read" : true,
"key" : "...",
"description" : "...",
"senderThumbnail" : "...",
"commentKey" : "...",
"uri" : "..."
}
HTTP/1.1 201 Created
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| postid | query | |
| vreid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
POST /2/lib/save-post-to-vretimeline-lib
Content-Type: application/json
Accept: application/json
Authorization: ...
...
HTTP/1.1 201 Created
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| media type | data type |
|---|---|
| application/json | Post (JSON) |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
POST /2/lib/save-user-post-lib
Content-Type: application/json
Accept: application/json
Authorization: ...
{
"entityId" : "...",
"email" : "...",
"likesNo" : "...",
"type" : "ACCOUNTING",
"vreid" : "...",
"description" : "...",
"multiFileUpload" : true,
"commentsNo" : "...",
"time" : 12345,
"privacy" : "PUBLIC",
"fullName" : "...",
"uriThumbnail" : "...",
"uri" : "...",
"linkDescription" : "...",
"linkTitle" : "...",
"thumbnailURL" : "...",
"key" : "...",
"applicationFeed" : true,
"linkHost" : "..."
}
HTTP/1.1 201 Created
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| userid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
POST /2/lib/set-all-notification-read-lib
Content-Type: application/json
Accept: application/json
Authorization: ...
...
HTTP/1.1 201 Created
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| query | ||
| vreid | query |
| media type | data type |
|---|---|
| application/json | InviteStatus (JSON) |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
POST /2/lib/set-invite-status-lib
Content-Type: application/json
Accept: application/json
Authorization: ...
"PENDING"
HTTP/1.1 201 Created
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| userid | query |
| media type | data type |
|---|---|
| application/json | map of array of NotificationChannelType (JSON) |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
POST /2/lib/set-notification-preference-lib
Content-Type: application/json
Accept: application/json
Authorization: ...
"PORTAL"
HTTP/1.1 201 Created
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| notid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
POST /2/lib/set-notification-read-lib
Content-Type: application/json
Accept: application/json
Authorization: ...
...
HTTP/1.1 201 Created
Content-Type: application/json
...
| name | type | description |
|---|---|---|
| Authorization | header | Bearer token, see https://dev.d4science.org/how-to-access-resources |
| Content-Type | header | application/json |
| feedid | query | |
| likeid | query | |
| userid | query |
| media type | data type | description |
|---|---|---|
| application/json | object (JSON) |
POST /2/lib/unlike-lib
Content-Type: application/json
Accept: application/json
Authorization: ...
...
HTTP/1.1 201 Created
Content-Type: application/json
...