1. Get comments
Get list of comments.
1.1. CURL sample
$ curl 'https://minerva-service.lcsb.uni.lu/minerva/api/projects/test_project/comments/models/307/?columns=author,elementId,content' -X GET \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx"
1.2. Path Parameters
Parameter | Description |
---|---|
|
project identifier |
|
map identifier |
1.3. Request Parameters
Parameter | Description |
---|---|
|
set of columns (all by default). Available options: title, icon, type, content, removed, coord, modelId, elementId, id, pinned, email, owner, removeReason |
|
true/false/undefined - when defined comment property must match this parameter |
1.4. Response Fields
Path | Type | Description |
---|---|---|
|
|
list of comments |
|
|
login of the user that created a comment |
|
|
author email address |
|
|
content |
|
|
formatted name of the commented element |
|
|
should the comment be visible to everybody on the map |
|
|
is the comment removed |
|
|
reason why comment was removed |
|
|
comment identifier |
|
|
map identifier |
|
|
coordinates where comment should be pinned |
|
|
icon that should be used to visualize this comment |
|
|
element identifier |
|
|
type of the element that was commented on. Available options ALIAS, POINT, REACTION |
1.5. Sample Response
[ {
"content" : null,
"elementId" : "10.00,20.00"
}, {
"content" : null,
"elementId" : "10.00,20.00"
}, {
"content" : null,
"elementId" : "10.00,20.00"
} ]
2. Get comments for specific reaction
2.1. CURL sample
$ curl 'https://minerva-service.lcsb.uni.lu/minerva/api/projects/test_project/comments/models/311/bioEntities/reactions/159' -X GET \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx"
2.2. Path Parameters
Parameter | Description |
---|---|
|
project identifier |
|
map identifier |
|
reaction identifier |
2.3. Request Parameters
Parameter | Description |
---|---|
|
set of columns (all by default). Available options: title, icon, type, content, removed, coord, modelId, elementId, id, pinned, email, owner, removeReason |
|
true/false/undefined - when defined comment property must match this parameter |
2.4. Response Fields
Path | Type | Description |
---|---|---|
|
|
list of comments |
|
|
login of the user that created a comment |
|
|
author email address |
|
|
content |
|
|
formatted name of the commented element |
|
|
should the comment be visible to everybody on the map |
|
|
is the comment removed |
|
|
reason why comment was removed |
|
|
comment identifier |
|
|
map identifier |
|
|
coordinates where comment should be pinned |
|
|
icon that should be used to visualize this comment |
|
|
element identifier |
|
|
type of the element that was commented on. Available options ALIAS, POINT, REACTION |
2.5. Sample Response
[ {
"title" : "Reaction path_0_re5933",
"icon" : "icons/comment.png?v=Unknown",
"type" : "REACTION",
"content" : null,
"removed" : false,
"coord" : {
"x" : 5.0,
"y" : 0.0
},
"modelId" : 311,
"elementId" : "159",
"id" : 55,
"pinned" : false,
"email" : null,
"owner" : null,
"removeReason" : ""
} ]
3. Get comments for specific element
3.1. CURL sample
$ curl 'https://minerva-service.lcsb.uni.lu/minerva/api/projects/test_project/comments/models/355/bioEntities/elements/890' -X GET \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx"
3.2. Path Parameters
Parameter | Description |
---|---|
|
project identifier |
|
map identifier |
|
element identifier |
3.3. Request Parameters
Parameter | Description |
---|---|
|
set of columns (all by default). Available options: title, icon, type, content, removed, coord, modelId, elementId, id, pinned, email, owner, removeReason |
|
true/false/undefined - when defined comment property must match this parameter |
3.4. Response Fields
Path | Type | Description |
---|---|---|
|
|
list of comments |
|
|
login of the user that created a comment |
|
|
author email address |
|
|
content |
|
|
formatted name of the commented element |
|
|
should the comment be visible to everybody on the map |
|
|
is the comment removed |
|
|
reason why comment was removed |
|
|
comment identifier |
|
|
map identifier |
|
|
coordinates where comment should be pinned |
|
|
icon that should be used to visualize this comment |
|
|
element identifier |
|
|
type of the element that was commented on. Available options ALIAS, POINT, REACTION |
3.5. Sample Response
[ {
"title" : "water",
"icon" : "icons/comment.png?v=Unknown",
"type" : "ALIAS",
"content" : null,
"removed" : false,
"coord" : {
"x" : 60.0,
"y" : 30.0
},
"modelId" : 355,
"elementId" : "890",
"id" : 75,
"pinned" : false,
"email" : null,
"owner" : null,
"removeReason" : ""
} ]
4. Get comments for specific point
4.1. CURL sample
$ curl 'https://minerva-service.lcsb.uni.lu/minerva/api/projects/test_project/comments/models/323/points/10.00,20.00' -X GET \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx"
4.2. Path Parameters
Parameter | Description |
---|---|
|
project identifier |
|
map identifier |
|
point coordinates |
4.3. Request Parameters
Parameter | Description |
---|---|
|
set of columns (all by default). Available options: title, icon, type, content, removed, coord, modelId, elementId, id, pinned, email, owner, removeReason |
|
true/false/undefined - when defined comment property must match this parameter |
4.4. Response Fields
Path | Type | Description |
---|---|---|
|
|
list of comments |
|
|
login of the user that created a comment |
|
|
author email address |
|
|
content |
|
|
formatted name of the commented element |
|
|
should the comment be visible to everybody on the map |
|
|
is the comment removed |
|
|
reason why comment was removed |
|
|
comment identifier |
|
|
map identifier |
|
|
coordinates where comment should be pinned |
|
|
icon that should be used to visualize this comment |
|
|
element identifier |
|
|
type of the element that was commented on. Available options ALIAS, POINT, REACTION |
4.5. Sample Response
[ {
"title" : "Comment (coord: 10.00, 20.00)",
"icon" : "icons/comment.png?v=Unknown",
"type" : "POINT",
"content" : null,
"removed" : false,
"coord" : {
"x" : 10.0,
"y" : 20.0
},
"modelId" : 323,
"elementId" : "10.00,20.00",
"id" : 60,
"pinned" : false,
"email" : null,
"owner" : null,
"removeReason" : ""
} ]
5. Create element comment
5.1. CURL sample
$ curl 'https://minerva-service.lcsb.uni.lu/minerva/api/projects/test_project/comments/models/315/bioEntities/elements/787' -X POST \
-d 'email=a%40a.lu&content=test+content&pinned=true&coordinates=10%2C2&modelId=315' \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" \
-H 'Content-Type: application/x-www-form-urlencoded'
5.2. Path Parameters
Parameter | Description |
---|---|
|
project identifier |
|
map identifier |
|
element identifier |
5.3. Request Parameters
Parameter | Description |
---|---|
|
map identifier |
|
content |
|
user email address |
|
coordinates where comment should be pinned |
|
should the comment be visible to everybody |
5.4. Response Fields
Path | Type | Description |
---|---|---|
|
|
login of the user that created a comment |
|
|
author email address |
|
|
content |
|
|
formatted name of the commented element |
|
|
should the comment be visible to everybody on the map |
|
|
is the comment removed |
|
|
reason why comment was removed |
|
|
comment identifier |
|
|
map identifier |
|
|
coordinates where comment should be pinned |
|
|
icon that should be used to visualize this comment |
|
|
element identifier |
|
|
type of the element that was commented on. Available options ALIAS, POINT, REACTION |
5.5. Sample Response
{
"title" : "Comp",
"icon" : "icons/comment.png?v=Unknown",
"type" : "ALIAS",
"content" : "test content",
"removed" : false,
"coord" : {
"x" : 505.0,
"y" : 505.0
},
"modelId" : 315,
"elementId" : "787",
"id" : 57,
"pinned" : true,
"email" : "a@a.lu",
"owner" : "test_user",
"removeReason" : ""
}
6. Create reaction comment
6.1. CURL sample
$ curl 'https://minerva-service.lcsb.uni.lu/minerva/api/projects/test_project/comments/models/385/bioEntities/reactions/196' -X POST \
-d 'email=a%40a.lu&content=test+content&pinned=true&coordinates=10%2C2&modelId=385' \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" \
-H 'Content-Type: application/x-www-form-urlencoded'
6.2. Path Parameters
Parameter | Description |
---|---|
|
project identifier |
|
map identifier |
|
reaction identifier |
6.3. Request Parameters
Parameter | Description |
---|---|
|
map identifier |
|
content |
|
user email address |
|
coordinates where comment should be pinned |
|
should the comment be visible to everybody |
6.4. Response Fields
Path | Type | Description |
---|---|---|
|
|
login of the user that created a comment |
|
|
author email address |
|
|
content |
|
|
formatted name of the commented element |
|
|
should the comment be visible to everybody on the map |
|
|
is the comment removed |
|
|
reason why comment was removed |
|
|
comment identifier |
|
|
map identifier |
|
|
coordinates where comment should be pinned |
|
|
icon that should be used to visualize this comment |
|
|
element identifier |
|
|
type of the element that was commented on. Available options ALIAS, POINT, REACTION |
6.5. Sample Response
{
"title" : "Reaction path_0_re5933",
"icon" : "icons/comment.png?v=Unknown",
"type" : "REACTION",
"content" : "test content",
"removed" : false,
"coord" : {
"x" : 5.0,
"y" : 0.0
},
"modelId" : 385,
"elementId" : "196",
"id" : 96,
"pinned" : true,
"email" : "a@a.lu",
"owner" : "test_user",
"removeReason" : ""
}
7. Create coordinates comment
7.1. CURL sample
$ curl 'https://minerva-service.lcsb.uni.lu/minerva/api/projects/test_project/comments/models/375/points/10,2' -X POST \
-d 'email=a%40a.lu&content=test+content&pinned=true&modelId=375' \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" \
-H 'Content-Type: application/x-www-form-urlencoded'
7.2. Path Parameters
Parameter | Description |
---|---|
|
project identifier |
|
map identifier |
|
point coordinates |
7.3. Request Parameters
Parameter | Description |
---|---|
|
map identifier |
|
content |
|
user email address |
|
coordinates where comment should be pinned |
|
should the comment be visible to everybody |
7.4. Response Fields
Path | Type | Description |
---|---|---|
|
|
login of the user that created a comment |
|
|
author email address |
|
|
content |
|
|
formatted name of the commented element |
|
|
should the comment be visible to everybody on the map |
|
|
is the comment removed |
|
|
reason why comment was removed |
|
|
comment identifier |
|
|
map identifier |
|
|
coordinates where comment should be pinned |
|
|
icon that should be used to visualize this comment |
|
|
element identifier |
|
|
type of the element that was commented on. Available options ALIAS, POINT, REACTION |
7.5. Sample Response
{
"title" : "Comment (coord: 10.00, 2.00)",
"icon" : "icons/comment.png?v=Unknown",
"type" : "POINT",
"content" : "test content",
"removed" : false,
"coord" : {
"x" : 10.0,
"y" : 2.0
},
"modelId" : 375,
"elementId" : "10.00,2.00",
"id" : 87,
"pinned" : true,
"email" : "a@a.lu",
"owner" : "test_user",
"removeReason" : ""
}
8. Delete comment
8.1. CURL sample
$ curl 'https://minerva-service.lcsb.uni.lu/minerva/api/projects/test_project/comments/50/' -X DELETE \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx"
8.2. Path Parameters
Parameter | Description |
---|---|
|
project identifier |
|
comment identifier |