diff options
-rw-r--r-- | beamercolorthemeIST.sty | 9 | ||||
-rw-r--r-- | beamerthemeIST.sty | 14 | ||||
-rw-r--r-- | markdown_blocks/rest_aa.md | 5 | ||||
-rw-r--r-- | markdown_blocks/rest_examples.md | 14 | ||||
-rw-r--r-- | markdown_blocks/rest_lazar_description.md | 4 | ||||
-rw-r--r-- | markdown_blocks/rest_links.md | 15 | ||||
-rw-r--r-- | markdown_blocks/rest_screenshot.md | 1 | ||||
-rw-r--r-- | nmsa-ist-rest.tex | 20 |
8 files changed, 73 insertions, 9 deletions
diff --git a/beamercolorthemeIST.sty b/beamercolorthemeIST.sty index 4978f4d..7a039f6 100644 --- a/beamercolorthemeIST.sty +++ b/beamercolorthemeIST.sty @@ -40,13 +40,20 @@ \DeclareCaptionFont{captext}{\color[HTML]{000000}} \captionsetup{labelfont=caplabel,textfont=captext} + +\definecolor{lightgrey}{rgb}{0.96,0.96,0.96} % defining color for listing +\definecolor{darkgreen}{rgb}{0,0.6,0} % defining color for listing +\definecolor{red}{rgb}{0.6,0,0} % defining color for listing + % codeblock \lstloadlanguages{Ruby} +\lstloadlanguages{Bash} \lstset{% basicstyle=\ttfamily\color{black}, commentstyle = \ttfamily\color{darkgrey}, keywordstyle=\ttfamily\color{blue}, - stringstyle=\color{orange}} + stringstyle=\color{red}, + backgroundcolor=\color{lightgrey}} % list bullets, numbers and items \setbeamercolor{itemize item}{fg=darkblue,bg=white} diff --git a/beamerthemeIST.sty b/beamerthemeIST.sty index 76ccabf..39d3346 100644 --- a/beamerthemeIST.sty +++ b/beamerthemeIST.sty @@ -19,6 +19,20 @@ \usepackage{longtable} \usepackage{listings} + +\lstset{breakatwhitespace, + basicstyle=\small\ttfamily, + keywordstyle=\footnotesize\color{blue}\ttfamily + columns=fullflexible, + keepspaces, + breaklines, + tabsize=2, + showstringspaces=false, + extendedchars=true +} + +\usepackage{ragged2e} % for justifing text + \usepackage{booktabs} \usepackage{caption} \setbeamertemplate{caption}[numbered] % set numbering of tables and figures diff --git a/markdown_blocks/rest_aa.md b/markdown_blocks/rest_aa.md new file mode 100644 index 0000000..2022c54 --- /dev/null +++ b/markdown_blocks/rest_aa.md @@ -0,0 +1,5 @@ +Data confidentiality, authentication and authorization (AA) is a common requirement for many resources. +Within the OpenTox\cite{hardy2010collaborative} project, in-silico toxicology gmbh has implemented a single-sign-on method with an OpenLDAP backend for user management +and OpenAM for authentication and authorization. The revised technic is also used in eNanoMapper services to provide access control. +Conforming to the OpenTox web service architecture principles\cite{hardy2010collaborative}, eNanoMapper services will be decoupled from AAI. +This provides the opportunity to deploy a service without A&A, if/when possible.
\ No newline at end of file diff --git a/markdown_blocks/rest_examples.md b/markdown_blocks/rest_examples.md new file mode 100644 index 0000000..3b3789d --- /dev/null +++ b/markdown_blocks/rest_examples.md @@ -0,0 +1,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>' +```
\ No newline at end of file diff --git a/markdown_blocks/rest_lazar_description.md b/markdown_blocks/rest_lazar_description.md new file mode 100644 index 0000000..523de05 --- /dev/null +++ b/markdown_blocks/rest_lazar_description.md @@ -0,0 +1,4 @@ +*lazar* (lazy structure–activity relationships) is a modular framework for read across predictions of chemical toxicities. +Within the European Union’s FP7 eNanoMapper project lazar was extended with capabilities to handle nanomaterial data, +interfaces to other eNanoMapper services (databases and ontologies) and a stable and user-friendly graphical interface +for nanoparticle read-across predictions. lazar provides a ruby gem library to this developments.
\ No newline at end of file diff --git a/markdown_blocks/rest_links.md b/markdown_blocks/rest_links.md new file mode 100644 index 0000000..2049630 --- /dev/null +++ b/markdown_blocks/rest_links.md @@ -0,0 +1,15 @@ +* Nano-lazar Restful API GUI. Swagger UI based documentation for API visualization and interaction. + \ + <https://enm.in-silico.ch> + +* Nano-lazar Restful API services source code repository + <https://github.com/opentox/lazar-rest> + +* Nano-lazar Restful API services Rubydocs documentation + <http://www.rubydoc.info/gems/lazar-rest> + +* Lazar (source code) + <https://github.com/opentox/lazar> + +* Nano-lazar GUI (graphical user interface) + <https://github.com/eNanoMapper/nano-lazar> diff --git a/markdown_blocks/rest_screenshot.md b/markdown_blocks/rest_screenshot.md new file mode 100644 index 0000000..1ad6fc7 --- /dev/null +++ b/markdown_blocks/rest_screenshot.md @@ -0,0 +1 @@ +![Swagger UI](./images/rest_swagger.png "This a short caption (alt text)"){width=1540px}
\ No newline at end of file diff --git a/nmsa-ist-rest.tex b/nmsa-ist-rest.tex index f64fb5e..583e92f 100644 --- a/nmsa-ist-rest.tex +++ b/nmsa-ist-rest.tex @@ -1,6 +1,6 @@ \documentclass[final]{beamer} \usetheme{IST} -\usepackage[orientation=portrait,size=a0,scale=1.4,debug]{beamerposter} % poster size +\usepackage[orientation=portrait,size=a0,scale=1.3,debug]{beamerposter} % poster size \usepackage[absolute,overlay]{textpos} \usepackage[utf8]{inputenc} @@ -24,15 +24,17 @@ \begin{textblock}{40.5}(1,14) \begin{block}{Abstract} + \justifying \input{./markdown_blocks/rest_summary} \end{block} - \begin{block}{Swagger API GUI} - \input{./markdown_blocks/rest_screenshot} + \begin{block}{lazar} + \justifying + \input{./markdown_blocks/rest_lazar_description} \end{block} - \begin{block}{Markdown tables} - \input{./markdown_blocks/table} + \begin{block}{Swagger API GUI} + \input{./markdown_blocks/rest_screenshot} \end{block} \end{textblock} @@ -40,6 +42,7 @@ \begin{textblock}{40.5}(42.6,14) \begin{block}{Authorization \& Authentication} + \justifying \input{./markdown_blocks/rest_aa} \end{block} @@ -47,8 +50,8 @@ \input{./markdown_blocks/exampletext} \end{alertblock} - \begin{block}{Code} - \input{./markdown_blocks/code} + \begin{block}{Practical Linux cURL Command Examples} + \input{./markdown_blocks/rest_examples} \end{block} \begin{exampleblock}{Links} @@ -56,12 +59,13 @@ \end{exampleblock} \begin{block}{References} + \justifying \small\bibliography{references} \end{block} \end{textblock} - \begin{textblock}{82.1}(1,88) + \begin{textblock}{82.1}(1,98) \input{./markdown_blocks/exampletext} \end{textblock} |