Back to the list of all defined endpoints
/api/integration/suggestions
Unsupported. The suggestions can be retrieved only by source and target or via direct link, see the single entry and search method below.
GET api/integration/suggestions/<:suggestion-id>
It returns the data from one suggestion. The suggestion-id is a String generated by the source, as it must be unique for source, target and identified object to be imported it is usually represented by a combination of such elements
sample for a suggestion /api/integration/suggestions/reciter:gf3d657-9d6d-4a87-b905-fef0f8cae26:24694772
{
"id": "reciter:gf3d657-9d6d-4a87-b905-fef0f8cae26:24694772",
"display": "publication one",
"source": "reciter",
"score": "62.7",
"external-source-uri": "https://dspace7.4science.cloud/server/api/integration/reciterSourcesEntry/pubmed/entryValues/24694772",
"evidences": {
"acceptedRejectedEvidence": {
"score": "2.7",
"notes": "some notes, eventually empty or null"
},
"authorNameEvidence": {
"score": "0",
"notes": "some notes, eventually empty or null"
},
"journalCategoryEvidence": {
"score": "6",
"notes": "some notes, eventually empty or null"
},
"affiliationEvidence": {
"score": "23.7",
"notes": "some notes, eventually empty or null"
},
"relationshipEvidence": {
"score": "9",
"notes": "some notes, eventually empty or null"
},
"educationYearEvidence": {
"score": "3.6",
"notes": "some notes, eventually empty or null"
},
"personTypeEvidence": {
"score": "4",
"notes": "some notes, eventually empty or null"
},
"articleCountEvidence": {
"score": "6.7",
"notes": "some notes, eventually empty or null"
},
"averageClusteringEvidence": {
"score": "7",
"notes": "some notes, eventually empty or null"
}
},
"metadata": {
"dc.identifier.uri": [
{
"value": "https://publication/0000-0003-3681-2038",
"language": null,
"authority": null,
"confidence": -1,
"place": -1
}
],
"dc.title" : [
{
"value" : "publication one",
"language" : null,
"authority" : null,
"confidence" : -1
}
],
"dc.date.issued" : [
{
"value" : "2010-11-03",
"language" : null,
"authority" : null,
"confidence" : -1
}
]
},
"type": "suggestion",
"_links": {
"target": {
"href": "https://dspace7.4science.cloud/server/api/core/items/gf3d657-9d6d-4a87-b905-fef0f8cae26"
},
"self": {
"href": "https://dspace7.4science.cloud/server/api/integration/suggestions/reciter:gf3d657-9d6d-4a87-b905-fef0f8cae26:24694772"
}
}
}
/api/integration/suggestions/search/findByTargetAndSource?target=:target-uuid&source=:source-key[&size=10&page=0]
It returns the list of suggestions and corresponding evidence from a specific source for the requested individual/target
The supported parameters are:
- page, size see pagination. Data can be sorted by trust desc (default) or asc. Please note that the sort parameter must use the word trust instead than score for the sorting as score have a reserved meaning
- target: mandatory, the uuid associated with your target profile
- source: mandatory, the key of the source that you want to query for suggestion
Return codes:
- 200 OK - if the operation succeed
- 400 Bad Request - if the uuid parameter is missing or invalid
sample for a search /server/api/integration/suggestions/search/findByTargetAndSource?target=gf3d657-9d6d-4a87-b905-fef0f8cae26c&source=reciter
{
"_embedded": {
"reciterSourceEntries": [
{
"id": "24694772",
"display": "publication one",
"source": "reciter",
"external-source-uri": "https://dspace7.4science.cloud/server/api/integration/reciterSourcesEntry/pubmed/entryValues/24694772",
"evidences": {
"acceptedRejectedEvidence": {
"score": "2.7",
"notes": "some notes, eventually empty or null"
},
"authorNameEvidence": {
"score": "0",
"notes": "some notes, eventually empty or null"
},
"journalCategoryEvidence": {
"score": "6",
"notes": "some notes, eventually empty or null"
},
"affiliationEvidence": {
"score": "xxx",
"notes": "some notes, eventually empty or null"
},
"relationshipEvidence": {
"score": "9",
"notes": "some notes, eventually empty or null"
},
"educationYearEvidence": {
"score": "3.6",
"notes": "some notes, eventually empty or null"
},
"personTypeEvidence": {
"score": "4",
"notes": "some notes, eventually empty or null"
},
"articleCountEvidence": {
"score": "6.7",
"notes": "some notes, eventually empty or null"
},
"averageClusteringEvidence": {
"score": "7",
"notes": "some notes, eventually empty or null"
}
},
"metadata": {
"dc.identifier.uri": [
{
"value": "https://publication/0000-0003-3681-2038",
"language": null,
"authority": null,
"confidence": -1,
"place": -1
}
],
"dc.title" : [
{
"value" : "publication one",
"language" : null,
"authority" : null,
"confidence" : -1
}
],
"dc.date.issued" : [
{
"value" : "2010-11-03",
"language" : null,
"authority" : null,
"confidence" : -1
}
]
},
"type": "suggestion",
"_links": {
"target": {
"href": "https://dspace7.4science.cloud/server/api/core/items/gf3d657-9d6d-4a87-b905-fef0f8cae26"
},
"self": {
"href": "https://dspace7.4science.cloud/server/api/integration/suggestions/reciter:gf3d657-9d6d-4a87-b905-fef0f8cae26c:24694772"
}
}
}
]
},
"_links": {
"self": {
"href": "https://dspace7.4science.cloud/server/api/integration/suggestions/search/findByTargetAndSource?target=gf3d657-9d6d-4a87-b905-fef0f8cae26c&source=reciter"
}
},
"page": {
"size": 20,
"totalElements": 1,
"totalPages": 1,
"number": 0
}
}
See the WorkspaceItem endpoint for details on how to import a suggestion
DELETE api/integration/suggestions/<:suggestion-id>
This discard the given suggestion. The endpoint is restricted to owners of the suggestion target and administrators
Status codes:
- 204 No content - if the operation succeed
- 401 Unauthorized - if you are not authenticated
- 403 Forbidden - if you are not logged in with sufficient permissions
- 404 Not found - if the suggestion doesn't exist (or was already discarded)