diff options
Diffstat (limited to 'markdown_blocks/rest_examples.md')
-rw-r--r-- | markdown_blocks/rest_examples.md | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/markdown_blocks/rest_examples.md b/markdown_blocks/rest_examples.md index 7bd49d6..ef4def2 100644 --- a/markdown_blocks/rest_examples.md +++ b/markdown_blocks/rest_examples.md @@ -1,14 +1,20 @@ Get an URI list for all models: +\footnotesize + ```Bash curl -X GET --header 'Accept: text/uri-list' -H 'accept:text/uri-list' 'https://enm.in-silico.ch/model' ``` - +\normalsize Retrieve an JSON representation of a model: -```bash +\footnotesize + +```Bash curl -X GET -H 'Accept: application/json' -H 'accept: application/json' 'https://enm.in-silico.ch/model/<MODELID>' ``` - +\normalsize Predict a nano-particle: +\footnotesize + ```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>' ```
\ No newline at end of file |