projet-webservices/architecture.tex

24 lines
814 B
TeX
Raw Normal View History

2022-12-01 13:57:18 +01:00
\documentclass[border=0.2cm]{standalone}
\usepackage{tikz}
\usetikzlibrary{shapes}
\begin{document}
\begin{tikzpicture}
\node[rectangle,draw,text height=3cm,minimum width=4cm] (server) at (0,0) {API};
\node[rectangle,draw,] (rust_server) at (0, 0) {\small Rust};
\node[rectangle,draw,text height=1.5cm,minimum width=2cm] (client-python) at (-6,2) {Client 1};
\node[rectangle,draw,] (python_client) at (-6, 2) {\small Python};
\node[rectangle,draw,text height=1.5cm,minimum width=2cm] (client-rust) at (-6,-2) {Client 2};
\node[rectangle,draw,] (rust_client) at (-6, -2) {\small Rust};
\draw[-latex,thick] (client-python) -- (server) node[midway,fill=white]{SOAP};
\draw[-latex,thick] (client-rust) -- (server) node[midway,fill=white]{REST};
\end{tikzpicture}
\end{document}