Submap linked to the element.
The endpoints are served from /new_api/projects/{projectId}/maps/{mapId}/bio_entities/elements/{id}/submap.
1. Set submap
Links the element to the given submap of the project.
|
Note
|
Supports optimistic locking via the If-Match header.
|
1.1. HTTP request
POST /minerva/new_api/projects/test_project/maps/234/bio_entities/elements/634/submap HTTP/1.1
1.2. Path Parameters
| Parameter | Description |
|---|---|
|
project identifier |
|
map identifier |
|
unique element identifier (the numeric "id" field of the element, not the "elementId" taken from the source file) |
1.3. Request Fields
| Path | Type | Description |
|---|---|---|
|
|
identifier of the referenced entity |
1.4. CURL sample
$ curl 'https://minerva-dev.lcsb.uni.lu/minerva/new_api/projects/test_project/maps/234/bio_entities/elements/634/submap' -X POST \
-H 'Authorization: Bearer xxxxxxxx' \
-d '{"id":234}' \
-H 'Content-Type: application/json'
1.5. HTTP response
HTTP/1.1 200 OK
1.6. Sample Response
{
"id" : 234,
"width" : 400.0,
"height" : 400.0,
"defaultCenterX" : null,
"defaultCenterY" : null,
"defaultZoomLevel" : null,
"description" : "",
"name" : "map_name",
"references" : [ {
"link" : null,
"type" : "MESH_2012",
"resource" : "D010300",
"id" : 807,
"annotator" : null
} ],
"authors" : [ {
"id" : 101,
"firstName" : "John",
"lastName" : "Doe",
"email" : null,
"organisation" : null
} ],
"creationDate" : null,
"modificationDates" : [ ],
"minZoom" : 2,
"maxZoom" : 2
}