D4Science D4Science Don't have a D4Science account? Create one Could not find what you are looking for? Contact us.

Lib Resource

REST interface for the social networking library (comments).

POST /2/lib/add-comment-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
Request Body
media type data type
application/json Comment (JSON)
Response Body
media type data type description
application/json object (JSON)

Example

Request
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" : "..."
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

POST /2/lib/check-unread-messages-notification-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
userid query
Response Body
media type data type description
application/json object (JSON)

Example

Request
POST /2/lib/check-unread-messages-notification-lib
Content-Type: application/json
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

POST /2/lib/check-unread-notification-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
userid query
Response Body
media type data type description
application/json object (JSON)

Example

Request
POST /2/lib/check-unread-notification-lib
Content-Type: application/json
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

POST /2/lib/delete-comment-lib

Request Parameters
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
Response Body
media type data type description
application/json object (JSON)

Example

Request
POST /2/lib/delete-comment-lib
Content-Type: application/json
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

POST /2/lib/delete-hashtag-comment-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
commentid query
vreid query
Request Body
media type data type
application/json array of string (JSON)
Response Body
media type data type description
application/json object (JSON)

Example

Request
POST /2/lib/delete-hashtag-comment-lib
Content-Type: application/json
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

POST /2/lib/delete-hashtag-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
feedid query
vreid query
Request Body
media type data type
application/json array of string (JSON)
Response Body
media type data type description
application/json object (JSON)

Example

Request
POST /2/lib/delete-hashtag-lib
Content-Type: application/json
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

POST /2/lib/delete-post-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
postid query
Response Body
media type data type description
application/json object (JSON)

Example

Request
POST /2/lib/delete-post-lib
Content-Type: application/json
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

POST /2/lib/edit-comment-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
Request Body
media type data type
application/json Comment (JSON)
Response Body
media type data type description
application/json object (JSON)

Example

Request
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" : "..."
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

GET /2/lib/get-all-liked-posts-by-user-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
userid query
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/lib/get-all-liked-posts-by-user-lib
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /2/lib/get-all-likes-by-post-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
postid query
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/lib/get-all-likes-by-post-lib
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /2/lib/get-all-notifications-user

Request Parameters
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  
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/lib/get-all-notifications-user
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /2/lib/get-all-posts-by-app-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
appid query
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/lib/get-all-posts-by-app-lib
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /2/lib/get-all-posts-by-user-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
userid query
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/lib/get-all-posts-by-user-lib
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /2/lib/get-all-posts-by-vre-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
vreid query
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/lib/get-all-posts-by-vre-lib
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /2/lib/get-all-vre-ids-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/lib/get-all-vre-ids-lib
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /2/lib/get-attachment-by-postid-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
postid query
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/lib/get-attachment-by-postid-lib
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /2/lib/get-comments-by-post-id-lib

Request Parameters
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
Response Codes
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
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/lib/get-comments-by-post-id-lib
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

POST /2/lib/get-invited-email-by-vre-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
vreid query
Request Body
media type data type
application/json array of InviteStatus (JSON)
Response Body
media type data type description
application/json object (JSON)

Example

Request
POST /2/lib/get-invited-email-by-vre-lib
Content-Type: application/json
Accept: application/json
Authorization: ...

                
"PENDING"
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

GET /2/lib/get-notification-preference-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
userid query
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/lib/get-notification-preference-lib
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /2/lib/get-portal-privacy-level-posts-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/lib/get-portal-privacy-level-posts-lib
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /2/lib/get-range-notifications-user

Request Parameters
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  
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/lib/get-range-notifications-user
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /2/lib/get-recent-commented-posts-by-user-lib

Request Parameters
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  
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/lib/get-recent-commented-posts-by-user-lib
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /2/lib/get-recent-comments-by-user-and-date-lib

Request Parameters
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  
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/lib/get-recent-comments-by-user-and-date-lib
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /2/lib/get-recent-posts-by-user-date-lib

Request Parameters
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  
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/lib/get-recent-posts-by-user-date-lib
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /2/lib/get-recent-posts-by-user-lib

Request Parameters
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  
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/lib/get-recent-posts-by-user-lib
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /2/lib/get-recent-posts-by-vre-lib

Request Parameters
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  
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/lib/get-recent-posts-by-vre-lib
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /2/lib/get-recent-posts-by-vre-range-lib

Request Parameters
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  
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/lib/get-recent-posts-by-vre-range-lib
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /2/lib/get-unread-notifications-user

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
userid query
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/lib/get-unread-notifications-user
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

POST /2/lib/get-user-notification-channels-lib

Request Parameters
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
Response Body
media type data type description
application/json object (JSON)

Example

Request
POST /2/lib/get-user-notification-channels-lib
Content-Type: application/json
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

GET /2/lib/get-vre-hashtags-occurrences-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
vreid query
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/lib/get-vre-hashtags-occurrences-lib
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /2/lib/get-vre-hashtags-occurrences-time-lib

Request Parameters
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
vreid query  
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/lib/get-vre-hashtags-occurrences-time-lib
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /2/lib/get-vre-post-by-hashtag-lib

Request Parameters
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
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/lib/get-vre-post-by-hashtag-lib
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /2/lib/is-existing-invite-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
email query
vreid query
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/lib/is-existing-invite-lib
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

POST /2/lib/like-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
Request Body
media type data type
application/json Like (JSON)
Response Body
media type data type description
application/json object (JSON)

Example

Request
POST /2/lib/like-lib
Content-Type: application/json
Accept: application/json
Authorization: ...

                
{
  "fullName" : "...",
  "userid" : "...",
  "key" : "...",
  "thumbnailURL" : "...",
  "feedid" : "...",
  "time" : 12345
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

GET /2/lib/read-comment-by-id-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
commentid query
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/lib/read-comment-by-id-lib
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /2/lib/read-invite-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
inviteid query
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/lib/read-invite-lib
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /2/lib/read-notification-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
notid query
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/lib/read-notification-lib
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

GET /2/lib/read-post-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
postid query
Response Body
media type data type description
application/json object (JSON)

Example

Request
GET /2/lib/read-post-lib
Content-Type: */*
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
...
                
              

POST /2/lib/save-app-post-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
Request Body
media type data type
application/json Post (JSON)
Response Body
media type data type description
application/json object (JSON)

Example

Request
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" : "..."
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

POST /2/lib/save-attachment-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
postid query
Request Body
media type data type
application/json Attachment (JSON)
Response Body
media type data type description
application/json object (JSON)

Example

Request
POST /2/lib/save-attachment-lib
Content-Type: application/json
Accept: application/json
Authorization: ...

                
{
  "uri" : "...",
  "name" : "...",
  "id" : "...",
  "description" : "...",
  "mimeType" : "...",
  "thumbnailURL" : "..."
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

POST /2/lib/save-hashtag-comment-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
commentid query
vreid query
Request Body
media type data type
application/json array of string (JSON)
Response Body
media type data type description
application/json object (JSON)

Example

Request
POST /2/lib/save-hashtag-comment-lib
Content-Type: application/json
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

POST /2/lib/save-hashtag-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
feedid query
vreid query
Request Body
media type data type
application/json array of string (JSON)
Response Body
media type data type description
application/json object (JSON)

Example

Request
POST /2/lib/save-hashtag-lib
Content-Type: application/json
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

POST /2/lib/save-invite-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
Request Body
media type data type
application/json Invite (JSON)
Response Body
media type data type description
application/json object (JSON)

Example

Request
POST /2/lib/save-invite-lib
Content-Type: application/json
Accept: application/json
Authorization: ...

                
{
  "vreid" : "...",
  "status" : "ACCEPTED",
  "senderUserId" : "...",
  "senderFullName" : "...",
  "key" : "...",
  "invitedEmail" : "...",
  "controlCode" : "...",
  "time" : 12345
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

POST /2/lib/save-notification-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
Request Body
media type data type
application/json Notification (JSON)
Response Body
media type data type description
application/json object (JSON)

Example

Request
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" : "..."
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

POST /2/lib/save-post-to-vretimeline-lib

Request Parameters
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
Response Body
media type data type description
application/json object (JSON)

Example

Request
POST /2/lib/save-post-to-vretimeline-lib
Content-Type: application/json
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

POST /2/lib/save-user-post-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
Request Body
media type data type
application/json Post (JSON)
Response Body
media type data type description
application/json object (JSON)

Example

Request
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" : "..."
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

POST /2/lib/set-all-notification-read-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
userid query
Response Body
media type data type description
application/json object (JSON)

Example

Request
POST /2/lib/set-all-notification-read-lib
Content-Type: application/json
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

POST /2/lib/set-invite-status-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
email query
vreid query
Request Body
media type data type
application/json InviteStatus (JSON)
Response Body
media type data type description
application/json object (JSON)

Example

Request
POST /2/lib/set-invite-status-lib
Content-Type: application/json
Accept: application/json
Authorization: ...

                
"PENDING"
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

POST /2/lib/set-notification-preference-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
userid query
Request Body
media type data type
application/json map of array of NotificationChannelType (JSON)
Response Body
media type data type description
application/json object (JSON)

Example

Request
POST /2/lib/set-notification-preference-lib
Content-Type: application/json
Accept: application/json
Authorization: ...

                
"PORTAL"
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

POST /2/lib/set-notification-read-lib

Request Parameters
name type description
Authorization header Bearer token, see https://dev.d4science.org/how-to-access-resources
Content-Type header application/json
notid query
Response Body
media type data type description
application/json object (JSON)

Example

Request
POST /2/lib/set-notification-read-lib
Content-Type: application/json
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...
                
              

POST /2/lib/unlike-lib

Request Parameters
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
Response Body
media type data type description
application/json object (JSON)

Example

Request
POST /2/lib/unlike-lib
Content-Type: application/json
Accept: application/json
Authorization: ...

                
...
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
...