Skip to content
Snippets Groups Projects
Commit 5a312582 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '131-rest-api-documentation' into 'master'

Resolve "REST API documentation"

Closes #131

See merge request !55
parents 2fbb9be7 c8d98751
No related branches found
No related tags found
1 merge request!55Resolve "REST API documentation"
......@@ -105,7 +105,7 @@ curl -X GET --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" http://pg-sandbox.uni.lu/mine
* `projectId` - identifier of the project
* `modelId` - identifier of the (sub)map in the project
* `handlerClass` - class preparing model file. For list of all possible values check `/configuration/` response.
* polygonString (\*) - polygon defining part of the model for downloading
* `polygonString` (\*) - polygon defining part of the model for downloading
* See also `/configuration/` query to get list of possible formats
* Example:
```
......@@ -133,10 +133,10 @@ curl -X GET --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" "http://pg-sandbox.uni.lu/min
* URL: `/projects/{projectId}/models/{modelId}/bioEntities/elements/`
* Method: GET
* Parameters:
* `projectId` - identifier of the project
* `modelId` - identifier of the (sub)map in the project or wildcard '*' character
* `columns` (\*) - set of columns (optional). Possible values are: id, modelId, name, type, description, symbol, complexId, compartmentId, fullName, abbreviation, formula, name, synonyms, formerSymbols, references, bounds, hierarchyVisibilityLevel,
* `ids` (\*)- set of database ids (optional)
* `projectId` - identifier of the project
* `modelId` - identifier of the (sub)map in the project or wildcard '*' character
* `columns` (\*) - set of columns (optional). Possible values are: id, modelId, name, type, description, symbol, complexId, compartmentId, fullName, abbreviation, formula, name, synonyms, formerSymbols, references, bounds, hierarchyVisibilityLevel,
* `ids` (\*)- set of database ids (optional)
* Example:
```
curl -X GET --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" http://pg-sandbox.uni.lu/minerva/api/projects/pdmap_dec15/models/*/bioEntities/elements/?columns=id,name,type
......@@ -147,7 +147,7 @@ curl -X GET --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" http://pg-sandbox.uni.lu/mine
* Method: GET
* Parameters:
* `projectId` - identifier of the project
* `modelId` - identifier of the (sub)map in the project or wildcard '*' character
* `modelId` - identifier of the (sub)map in the project or wildcard '*' character
* `columns` (\*) - set of columns. Possible values are: id, reactionId, modelId, type, lines, centerPoint, products, reactants, modifiers, hierarchyVisibilityLevel, notes
* `ids` (\*) - set of database ids
* `participantId` (\*) - identifier of the element that should be part of the reaction
......@@ -161,7 +161,7 @@ curl -X GET --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" http://pg-sandbox.uni.lu/mine
* Method: GET
* Parameters:
* `projectId` - identifier of the project
* `modelId` - identifier of the (sub)map in the project or wildcard '*' character
* `modelId` - identifier of the (sub)map in the project or wildcard '*' character
* `query` (\*) - search term identifing bioEntity
* `coordinates` (\*) - coordinates where bioEntity should be located
* `count` (\*) - max number of bioEntities to return
......@@ -202,7 +202,7 @@ curl -X GET --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" "http://pg-sandbox.uni.lu/min
* Method: GET
* Parameters:
* `projectId` - identifier of the project
* `modelId` - identifier of the (sub)map in the project or wildcard '*' character
* `modelId` - identifier of the (sub)map in the project or wildcard '*' character
* `columns` (\*) - set of columns for each result. Possible values are: title, type, content, removed, coord, modelId, elementId, id, pinned, author, email,
* `removed` (\*) - if defined then removed paramter must match.
* Example:
......@@ -215,7 +215,7 @@ curl -X GET --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" "http://pg-sandbox.uni.lu/min
* Method: GET
* Parameters:
* `projectId` - identifier of the project
* `modelId` - identifier of the (sub)map in the project or wildcard '*' character
* `modelId` - identifier of the (sub)map in the project or wildcard '*' character
* `reactionId` - identifier of the reaction
* `columns` (\*) - set of columns for each result. Possible values are: title, type, content, removed, coord, modelId, elementId, id, pinned, author, email,
* `removed` (\*) - if defined then removed paramter must match.
......@@ -229,7 +229,7 @@ curl -X GET --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" http://pg-sandbox.uni.lu/mine
* Method: GET
* Parameters:
* `projectId` - identifier of the project
* `modelId` - identifier of the (sub)map in the project or wildcard '*' character
* `modelId` - identifier of the (sub)map in the project or wildcard '*' character
* `elementId` - identifier of the element
* `columns` (\*) - set of columns for each result. Possible values are: title, type, content, removed, coord, modelId, elementId, id, pinned, author, email,
* `removed` (\*) - if defined then removed paramter must match.
......@@ -243,10 +243,10 @@ curl -X GET --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" http://pg-sandbox.uni.lu/mine
* Method: GET
* Parameters:
* `projectId` - identifier of the project
* `modelId` - identifier of the (sub)map in the project or wildcard '*' character
* `modelId` - identifier of the (sub)map in the project or wildcard '*' character
* `coordinates` - coordinates of the point on (sub)map
* `columns` (\*) - set of columns for each result. Possible values are: title, type, content, removed, coord, modelId, elementId, id, pinned, author, email,
* `removed` (\*) - if defined then removed paramter must match.
* `columns` (\*) - set of columns for each result. Possible values are: title, type, content, removed, coord, modelId, elementId, id, pinned, author, email,
* `removed` (\*) - if defined then removed paramter must match.
* Example: TODO
* Create element comment
......@@ -254,7 +254,7 @@ curl -X GET --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" http://pg-sandbox.uni.lu/mine
* Method: POST
* Parameters:
* `projectId` - identifier of the project
* `modelId` - identifier of the (sub)map in the project
* `modelId` - identifier of the (sub)map in the project
* `elementId` - identifier of the element to be commented
* `name` - name of the author
* `email` - email of the author
......@@ -271,7 +271,7 @@ curl -X POST --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" --data "name=testComment&ema
* Method: POST
* Parameters:
* `projectId` - identifier of the project
* `modelId` - identifier of the (sub)map in the project
* `modelId` - identifier of the (sub)map in the project
* `reactionId` - identifier of the reaction
* `name` - name of the author
* `email` - email of the author
......@@ -289,7 +289,7 @@ curl -X POST --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" --data "name=testComment&ema
* Method: GET
* Parameters:
* `projectId` - identifier of the project
* `modelId` - identifier of the (sub)map in the project
* `modelId` - identifier of the (sub)map in the project
* `name` - name of the author
* `email` - email of the author
* `content` - content of the comment
......@@ -304,10 +304,10 @@ curl -X POST --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" --data "name=testComment&ema
* URL: `/projects/{projectId}/drugs:search`
* Method: GET
* Parameters:
* `projectId` - identifier of the project
* `columns` (\*) - set of columns for each result. Possible values are: name, references, description, bloodBrainBarrier, brandNames, synonyms, id, targets,
* `query` (\*) - drug name or synonym
* `target` (\*) - target for which we are lookig for drugs. Target is defined as TYPE:ID. For example "ALIAS:534" is searching for drugs that target Alias with id=534.
* `projectId` - identifier of the project
* `columns` (\*) - set of columns for each result. Possible values are: name, references, description, bloodBrainBarrier, brandNames, synonyms, id, targets,
* `query` (\*) - drug name or synonym
* `target` (\*) - target for which we are lookig for drugs. Target is defined as TYPE:ID. For example "ALIAS:534" is searching for drugs that target Alias with id=534.
* Example:
```
curl -X GET --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" http://pg-sandbox.uni.lu/minerva/api/projects/pdmap_dec15/drugs:search?query=aspirin
......@@ -318,10 +318,10 @@ curl -X GET --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" http://pg-sandbox.uni.lu/mine
* URL: `/projects/{projectId}/miRnas:search`
* Method: GET
* Parameters:
* `projectId` - identifier of the project
* `columns` (\*) - set of columns for each result. Possible values are: name, id, targets,
* `query` (\*) - mirna id
* `target` (\*) - target for which we are lookig for drugs. Target is defined as TYPE:ID. For example "ALIAS:534" is searching for drugs that target Alias with id=534.
* `projectId` - identifier of the project
* `columns` (\*) - set of columns for each result. Possible values are: name, id, targets,
* `query` (\*) - mirna id
* `target` (\*) - target for which we are lookig for drugs. Target is defined as TYPE:ID. For example "ALIAS:534" is searching for drugs that target Alias with id=534.
* Example:
```
curl -X GET --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" http://pg-sandbox.uni.lu/minerva/api/projects/pdmap_dec15/miRnas:search?query=hsa-miR-125a-3p
......@@ -334,7 +334,7 @@ curl -X GET --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" http://pg-sandbox.uni.lu/mine
* Method: GET
* Parameters:
* `projectId` - identifier of the project
* `modelId` - identifier of the (sub)map in the project or wildcard '*' character
* `modelId` - identifier of the (sub)map in the project or wildcard '\*' character
* `start` (\*) - first element to be return when pagination is on (default 0)
* `length` (\*) - how many publication we want to retrieve (default 10)
......@@ -359,10 +359,10 @@ curl -X GET --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" http://pg-sandbox.uni.lu/mine
* Method: POST
* Parameters:
* `projectId` - identifier of the project
* `name` - name of the data overlay
* `content` - content of the file that is uploaded with definition what should be visible where
* `description` - short desription of the data overlay
* `filename` - name of the file that should be used when downloading the source
* `name` - name of the data overlay
* `content` - content of the file that is uploaded with definition what should be visible where
* `description` - short desription of the data overlay
* `filename` - name of the file that should be used when downloading the source
* Example:
```
curl -X POST --data "content=name%09color%0ACAPN1%09%2300FF00%0APARK7%09%23AC0000&description=test%20desc&filename=test.txt&name=test%20nam" --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" http://pg-sandbox.uni.lu/minerva/api/projects/pdmap_dec15/overlays/
......@@ -375,14 +375,14 @@ curl -X POST --data "content=name%09color%0ACAPN1%09%2300FF00%0APARK7%09%23AC000
* `projectId` - identifier of the project
* `overlayId` - identifier of data overlay
* Body: json with updated overlay
```
{
"overlay": {
"name" : name,
"description" : description
}
}
```
{
  "overlay": {
    "name" : name,
    "description" : description
  }
}
* Example:
```
curl -X PATCH --data "{\"overlay\":{\"name\":\"test\", \"description\":\"test2\"}}" --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" http://pg-sandbox.uni.lu/minerva/api/projects/pdmap_dec15/overlays/3203/
......@@ -437,7 +437,7 @@ curl -X GET --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" http://pg-sandbox.uni.lu/mine
* Method: GET
* Parameters:
* `projectId` - identifier of the project
* `modelId` - identifier of the (sub)map in the project
* `modelId` - identifier of the (sub)map in the project
* `overlayId` - identifier of data overlay
* `reactionId` - identifier of the reaction
* Example:
......@@ -450,7 +450,7 @@ curl -X GET --cookie "MINERVA_AUTH_TOKEN=xxxxxxxx" http://pg-sandbox.uni.lu/mine
* Method: GET
* Parameters:
* `projectId` - identifier of the project
* `modelId` - identifier of the (sub)map in the project
* `modelId` - identifier of the (sub)map in the project
* `overlayId` - identifier of data overlay
* `elementId` - identifier of the element
* Example:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment