Disease (MeSH annotation) of a project, served from
/new_api/projects/{projectId}/disease.
1. Get disease
Returns the disease assigned to the project. Returns 404 when the project has no disease.
1.1. HTTP request
GET /minerva/new_api/projects/test_project/disease HTTP/1.1
1.2. Path Parameters
| Parameter | Description |
|---|---|
|
project identifier |
1.3. CURL sample
$ curl 'https://minerva-dev.lcsb.uni.lu/minerva/new_api/projects/test_project/disease' -X GET \
-H 'Authorization: Bearer xxxxxxxx'
1.4. HTTP response
HTTP/1.1 200 OK
1.5. Response Fields
| Path | Type | Description |
|---|---|---|
|
|
unique identifier of the annotation |
|
|
miriam data type (e.g. TAXONOMY, MESH_2012) |
|
|
resource identifier within the given type |
|
|
URL computed from type and resource (identifiers.org link) |
|
|
publication details; present only when type is PUBMED |
|
|
annotator that created this annotation, null when it was added manually; one of: BRENDA, CAZY, CHEBI, COPY_CELL_DESIGNER_ANNOTATIONS, ENSEMBL, ENTREZ, GO, HGNC, KEGG, PDB, TAIR, UNIPROT |
1.6. Sample Response
{
"link" : null,
"type" : "MESH_2012",
"resource" : "D010300",
"id" : 278,
"annotator" : null
}
2. Set disease
Sets the disease of a project, creating it when the project has none and replacing it otherwise.
|
Note
|
Supports optimistic locking via the If-Match header.
|
2.1. HTTP request
PUT /minerva/new_api/projects/test_project/disease HTTP/1.1
2.2. Path Parameters
| Parameter | Description |
|---|---|
|
project identifier |
2.3. Request Fields
| Path | Type | Description |
|---|---|---|
|
|
miriam data type (e.g. TAXONOMY, MESH_2012) |
|
|
resource identifier within the given type |
2.4. CURL sample
$ curl 'https://minerva-dev.lcsb.uni.lu/minerva/new_api/projects/test_project/disease' -X PUT \
-H 'Authorization: Bearer xxxxxxxx' \
-d '{"type":"MESH_2012","resource":"D010300"}' \
-H 'Content-Type: application/json'
2.5. HTTP response
HTTP/1.1 200 OK
2.6. Response Fields
| Path | Type | Description |
|---|---|---|
|
|
unique identifier of the annotation |
|
|
miriam data type (e.g. TAXONOMY, MESH_2012) |
|
|
resource identifier within the given type |
|
|
URL computed from type and resource (identifiers.org link) |
|
|
publication details; present only when type is PUBMED |
|
|
annotator that created this annotation, null when it was added manually; one of: BRENDA, CAZY, CHEBI, COPY_CELL_DESIGNER_ANNOTATIONS, ENSEMBL, ENTREZ, GO, HGNC, KEGG, PDB, TAIR, UNIPROT |
2.7. Sample Response
{
"link" : null,
"type" : "MESH_2012",
"resource" : "D010300",
"id" : 270,
"annotator" : null
}
3. Delete disease
Removes the disease from the project.
|
Note
|
Supports optimistic locking via the If-Match header.
|
3.1. HTTP request
DELETE /minerva/new_api/projects/test_project/disease HTTP/1.1
3.2. Path Parameters
| Parameter | Description |
|---|---|
|
project identifier |
3.3. CURL sample
$ curl 'https://minerva-dev.lcsb.uni.lu/minerva/new_api/projects/test_project/disease' -X DELETE \
-H 'Authorization: Bearer xxxxxxxx'
3.4. HTTP response
HTTP/1.1 200 OK