26 lines
543 B
TeX
26 lines
543 B
TeX
\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}
|
|
|