summaryrefslogtreecommitdiff
path: root/markdown_blocks/rest_examples.md
blob: 7bd49d6d60a8c49507126172aef614aaeeb2ead0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Get an URI list for all models:
```Bash
  curl -X GET --header 'Accept: text/uri-list' -H 'accept:text/uri-list' 'https://enm.in-silico.ch/model' 
```

Retrieve an JSON representation of a model:
```bash
  curl -X GET -H 'Accept: application/json' -H 'accept: application/json' 'https://enm.in-silico.ch/model/<MODELID>'
```

Predict a nano-particle:
```Bash
  curl -X POST -H 'Content-Type: application/x-www-form-urlencoded' -H 'Accept:text/html' -d 'identifier= https://enm.in-silico.ch/nanoparticle/<NANOPARTICLEID>' 'https://enm.in-silico.ch/model/<MODELID>'
```