2022-12-01 13:57:18 +01:00
|
|
|
\documentclass[border=0.2cm]{standalone}
|
|
|
|
|
|
|
|
\usepackage{tikz}
|
|
|
|
\usetikzlibrary{shapes}
|
|
|
|
|
|
|
|
\begin{document}
|
|
|
|
|
|
|
|
\begin{tikzpicture}
|
2022-12-01 14:44:25 +01:00
|
|
|
\node[rectangle,draw,text height=3cm,minimum width=4cm] (server) at (0,0) {API REST};
|
2022-12-01 13:57:18 +01:00
|
|
|
\node[rectangle,draw,] (rust_server) at (0, 0) {\small Rust};
|
|
|
|
|
2022-12-01 14:44:25 +01:00
|
|
|
\node[rectangle,draw,] (public_api) at (6, 0) {API publique};
|
|
|
|
|
2022-12-01 13:57:18 +01:00
|
|
|
\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};
|
|
|
|
|
2022-12-01 14:44:25 +01:00
|
|
|
\draw[-latex,thick] (client-python) -- (server) node[midway,fill=white]{HTTP};
|
|
|
|
\draw[-latex,thick] (client-rust) -- (server) node[midway,fill=white]{HTTP};
|
|
|
|
\draw[-latex,thick] (server) -- (public_api) node[midway,fill=white]{HTTP};
|
2022-12-01 13:57:18 +01:00
|
|
|
\end{tikzpicture}
|
|
|
|
|
|
|
|
\end{document}
|