1. List backgrounds
1.1. Path Parameters
Parameter | Description |
---|---|
|
project identifier |
1.2. Response Fields
Path | Type | Description |
---|---|---|
|
|
identifier |
|
|
name |
|
|
description |
|
|
project id where this background belongs to |
|
|
who created background |
|
|
is the background ready. Available statuses are: FAILURE, GENERATING, NA, OK, UNKNOWN |
|
|
generating images progress information (in %) |
|
|
order used when listing all backgrounds |
|
|
directory where background tiles are located |
|
|
(sub)map for which images are described |
|
|
should the background be used as default (at most one per project should be marked with true) |
1.3. CURL sample
$ curl 'https://minerva-service.lcsb.uni.lu/minerva/api/projects/test_project/backgrounds/' -X GET \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx"
1.4. Sample Response
[ {
"id" : 412,
"name" : "Normal",
"defaultOverlay" : true,
"project" : {
"projectId" : "test_project"
},
"creator" : {
"login" : "admin"
},
"status" : "OK",
"progress" : 100.0,
"description" : null,
"order" : 0,
"images" : [ {
"id" : 779,
"model" : {
"id" : 747
},
"projectBackground" : {
"id" : 412
},
"path" : "directory_1"
}, {
"id" : 778,
"model" : {
"id" : 746
},
"projectBackground" : {
"id" : 412
},
"path" : "directory_0"
} ]
} ]
2. Get background by id
2.1. Path Parameters
Parameter | Description |
---|---|
|
project identifier |
|
background identifier |
2.2. Response Fields
Path | Type | Description |
---|---|---|
|
|
identifier |
|
|
name |
|
|
description |
|
|
project id where this background belongs to |
|
|
who created background |
|
|
is the background ready. Available statuses are: FAILURE, GENERATING, NA, OK, UNKNOWN |
|
|
generating images progress information (in %) |
|
|
order used when listing all backgrounds |
|
|
directory where background tiles are located |
|
|
(sub)map for which images are described |
|
|
should the background be used as default (at most one per project should be marked with true) |
2.3. CURL sample
$ curl 'https://minerva-service.lcsb.uni.lu/minerva/api/projects/test_project/backgrounds/397' -X GET \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx"
2.4. Sample Response
{
"id" : 397,
"name" : "Normal",
"defaultOverlay" : true,
"project" : {
"projectId" : "test_project"
},
"creator" : {
"login" : "admin"
},
"status" : "OK",
"progress" : 100.0,
"description" : null,
"order" : 0,
"images" : [ {
"id" : 758,
"model" : {
"id" : 731
},
"projectBackground" : {
"id" : 397
},
"path" : "directory_1"
}, {
"id" : 757,
"model" : {
"id" : 732
},
"projectBackground" : {
"id" : 397
},
"path" : "directory_0"
} ]
}
3. Update Background
3.1. Path Parameters
Parameter | Description |
---|---|
|
project identifier |
|
background identifier |
3.2. Request Fields
Path | Type | Description |
---|---|---|
|
|
identifier |
|
|
name |
|
|
description |
|
|
who created background |
|
|
order used when listing all backgrounds |
|
|
should the background be used as default (at most one per project should be marked with true) |
3.3. Response Fields
Path | Type | Description |
---|---|---|
|
|
identifier |
|
|
name |
|
|
description |
|
|
project id where this background belongs to |
|
|
who created background |
|
|
is the background ready. Available statuses are: FAILURE, GENERATING, NA, OK, UNKNOWN |
|
|
generating images progress information (in %) |
|
|
order used when listing all backgrounds |
|
|
directory where background tiles are located |
|
|
(sub)map for which images are described |
|
|
should the background be used as default (at most one per project should be marked with true) |
3.4. CURL sample
$ curl 'https://minerva-service.lcsb.uni.lu/minerva/api/projects/test_project/backgrounds/392' -X PATCH \
-d '{"id":392,"name":"weird_title","defaultOverlay":false,"creator":"admin","description":"new description","order":0}' \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" \
-H 'Content-Type: application/json'
3.5. Sample Response
{
"id" : 392,
"name" : "weird_title",
"defaultOverlay" : false,
"project" : {
"projectId" : "test_project"
},
"creator" : {
"login" : "admin"
},
"status" : "OK",
"progress" : 100.0,
"description" : "new description",
"order" : 0,
"images" : [ {
"id" : 750,
"model" : {
"id" : 726
},
"projectBackground" : {
"id" : 392
},
"path" : "directory_1"
}, {
"id" : 751,
"model" : {
"id" : 727
},
"projectBackground" : {
"id" : 392
},
"path" : "directory_0"
} ]
}
4. Delete overlay
4.1. CURL sample
$ curl 'https://minerva-service.lcsb.uni.lu/minerva/api/projects/test_project/backgrounds/426' -X DELETE \
--cookie "MINERVA_AUTH_TOKEN=xxxxxxxx"
4.2. Path Parameters
Parameter | Description |
---|---|
|
project identifier |
|
background identifier |