inf04-web2/tex/backend/main.tex

26 lines
543 B
TeX
Raw Normal View History

2024-06-20 06:27:54 +00:00
\documentclass{article}
\usepackage{hyperref} % Dodaje aktywne linki
\begin{document}
\section{Polecenia curl}
Poniżej znajdują się polecenia \texttt{curl} do wysyłania żądań POST do endpointu \texttt{/kebab\_orders/}:
\begin{verbatim}
for i in {1..5}; do \
curl -X 'POST' \
'http://qstack.pl:9999/kebab_orders/' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"type": "Kebab",
"quantity": 1,
"address": "Example Address '$i'"
}'; \
done
\end{verbatim}
\end{document}