From 550d86dd4d678ae103234215dc294b5edf8e6ebe Mon Sep 17 00:00:00 2001 From: Matt Date: Wed, 8 Nov 2023 13:06:25 +0100 Subject: [PATCH] curl --- docs/class4/module1/.DS_Store | Bin 8196 -> 8196 bytes docs/class4/module1/lab3/lab3.rst | 18 ++++++++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/docs/class4/module1/.DS_Store b/docs/class4/module1/.DS_Store index 9a4ebae9b2f4b9d4f3f577d0aa66aa603be878ea..38c1967dcefa8ca06997de4df2b106f8bd38a1a2 100644 GIT binary patch delta 1101 zcmeHFNlz3(811JlJw;$@WE{#tkVP?OCdeWNFzj0lAOsm%h4j#^(=3fl51WLb2`-W7 zrQ;G4T#kA&At)TtnCMY6LZSyRUep*h(O`@*R!@%?e}k8*yzf=L`o8ySzH+|ufrnzn z@Y1maHZxODlJCtpSX^SP19^q3@0YpX(~%2 zy|NTinnz_*O%~}gKhK#Amd1KarY5NHRgPZR&E|4QyRM#AL@HS)_Yn_iA5t~hMs=%_ zOY)d+Sn?~wHY!^W6_O&>F`)!?byTy_Myps%N?GT?=*S44Mdz)0t#TQwV14G(O_CmJ zIi+Z3TWc0q%?4^&w;qs!O3S3C1V#GHA{tmN>!LhVWW=BfJwn37>^8 z!dKxZ;vs?{0ZwEf6It*e5BVs>0hFN{HK;>9THwPmbfOD>3}Of)&@hQJIE#6l!xb#z z7Vh9K?qeAbv4T}RMi{TKj<nfgCo{9ka$G=iuDml>bfN z$8%7oMAJ+fALgO&aFfg|k>@~TqcCSLhmADOf^Lsj_IN}bDs(# zE|sGKRotm2G~)xfXlds>$riNO99tyEXA?S P7~{7y`@bCl*CPG^Lul&g9IPnhm~K z6x}-%MM3mh5rHK55OgDYt;CleDkuti3PPeJ+GozxpJ+eq#kUsUx7PmFo~)j%e&FYr zF#~*Pt9N|7XhUgHz*kmYnh5yD%hv@1zLMhgiG)Pm%L^;odjM&t}h9>9(yD;58S zv*sn)W&Yqk$fh^vN;+dsm+5nRCid#8X2kV_x)znB9MpFjp|Cca<;do8uI#0JIo&NJ(~k*Z zOM>|WlEh=31G+Jh;<8{7mAJZdFx0CJ+H$OPy-01}bySPS^oWs4ZmghU%)suxNH{D8 zkEL2yRa45JbX(1vLa}(u5zY8FR$aZQz1$l+9Exf!BZd}Daq6~F+StP#$%4hISM_*A zRISG=axDR%RQXy#!)>Uii?>#L>P|o*OZzLXXV5+c}!lASL8K$ zL*~d^@{xQZpUD^Ujr=6P$O8F|C2+wF8Ts%dfHf#Y2{xk=Rj5G&TF{C%bYKs9(FYX= zVPFKK7{hU#zh@qythzNclTNomZSb9OIQ8XDO) zQ^`q~)2{xEow}iFqvoR=&jio3ETpq?uE)ESEmQbnVZ99t*h+&0XH?c~_iS?swT%*(~+}e@wiaX2AdAHn^0WQ4A zgAdD4fE8GaAc|0&^rQ;a*n(O#VTbUg4ejW{estpiLg>dJ!bxw&a7=iUz)76KX`ID5 cT*Wn9$Bn5&@-0kddgjy31y{lU_xPLm15zURkpKVy diff --git a/docs/class4/module1/lab3/lab3.rst b/docs/class4/module1/lab3/lab3.rst index dbf7c5f..0c2bc1e 100644 --- a/docs/class4/module1/lab3/lab3.rst +++ b/docs/class4/module1/lab3/lab3.rst @@ -1,18 +1,23 @@ Test your modern API application protection =========================================== -#. Open Postman +#. If you have curl on your machine, go to the next step. Else, connect with SSH or WEBSSH to the Jumphost machine #. Run the below calls - #. GET /api/adjectives - #. GET /api/animals - #. GET /api/locations + .. code-block:: bash + + curl -H "Content-Type: application/json;charset=UTF-8" http://sentence-re-$$makeId$$.workshop.emea.f5se.com/api/adjectives + curl -H "Content-Type: application/json;charset=UTF-8" http://sentence-re-$$makeId$$.workshop.emea.f5se.com/api/animals + curl -H "Content-Type: application/json;charset=UTF-8" http://sentence-re-$$makeId$$.workshop.emea.f5se.com/api/locations + .. note:: The 3 calls are successful because there are defined in the OAS file (method + endpoint) #. Now, run the below call - #. GET /api/colors + .. code-block:: bash + + curl -H "Content-Type: application/json;charset=UTF-8" http://sentence-re-$$makeId$$.workshop.emea.f5se.com/api/colors .. note:: This call is denied because not part of the OAS file @@ -26,4 +31,5 @@ Check the logs .. note:: Scroll and search for API events .. image:: ../pictures/api-protect-event.png - :align: center \ No newline at end of file + :align: center +