From 9b112444a5dcc95e59ddeb84d0c132f5deef30b8 Mon Sep 17 00:00:00 2001 From: MCJ Vasseur <14887731+mvr320@users.noreply.github.com> Date: Wed, 17 Nov 2021 21:17:16 +0100 Subject: [PATCH] stash --- webapp/config/packages/nelmio_api_doc.yaml | 2 +- .../Controller/API/AbstractRestController.php | 1 + webapp/src/Controller/API/ContestController.php | 4 ---- .../Controller/API/GeneralInfoController.php | 1 + .../.FlattenExceptionHandler.php.swp | Bin 0 -> 12288 bytes 5 files changed, 3 insertions(+), 5 deletions(-) create mode 100644 webapp/src/FosRestBundle/.FlattenExceptionHandler.php.swp diff --git a/webapp/config/packages/nelmio_api_doc.yaml b/webapp/config/packages/nelmio_api_doc.yaml index 537fbd3124..949dfe02b0 100644 --- a/webapp/config/packages/nelmio_api_doc.yaml +++ b/webapp/config/packages/nelmio_api_doc.yaml @@ -9,7 +9,7 @@ nelmio_api_doc: components: securitySchemes: basicAuth: - type: http + type: https scheme: basic parameters: cid: diff --git a/webapp/src/Controller/API/AbstractRestController.php b/webapp/src/Controller/API/AbstractRestController.php index bb15531199..3fefa5da9c 100644 --- a/webapp/src/Controller/API/AbstractRestController.php +++ b/webapp/src/Controller/API/AbstractRestController.php @@ -25,6 +25,7 @@ /** * Class AbstractRestController + * @OA\Response(response="400", ref="#/components/responses/InvalidResponse") * @package App\Controller\API */ abstract class AbstractRestController extends AbstractFOSRestController diff --git a/webapp/src/Controller/API/ContestController.php b/webapp/src/Controller/API/ContestController.php index d0b795213d..89363ca5ca 100644 --- a/webapp/src/Controller/API/ContestController.php +++ b/webapp/src/Controller/API/ContestController.php @@ -332,10 +332,6 @@ public function setBannerAction(Request $request, string $id, ValidatorInterface * description="Contest start time changed successfully", * ) * @OA\Response( - * response="400", - * description="Invalid input data" - * ) - * @OA\Response( * response="403", * description="Changing start time not allowed" * ) diff --git a/webapp/src/Controller/API/GeneralInfoController.php b/webapp/src/Controller/API/GeneralInfoController.php index 4a8342a38a..02fda2a5f9 100644 --- a/webapp/src/Controller/API/GeneralInfoController.php +++ b/webapp/src/Controller/API/GeneralInfoController.php @@ -29,6 +29,7 @@ /** * @OA\Tag(name="General") + * @OA\Response(response="400", ref="#/components/responses/InvalidResponse") */ class GeneralInfoController extends AbstractFOSRestController { diff --git a/webapp/src/FosRestBundle/.FlattenExceptionHandler.php.swp b/webapp/src/FosRestBundle/.FlattenExceptionHandler.php.swp new file mode 100644 index 0000000000000000000000000000000000000000..740b4fd8d985bfe21ac5e7377c49174b4f9e77f3 GIT binary patch literal 12288 zcmeI2&u<$=6vrn>2nr-EAhp*4EZK>YIw?JX^NWyQb-_s+J5fa(g|$7gx2$(pGqXuU z68HQTL|?f$MR1)XdhqkvJsDDVg> zApIfoKJt1@=XPCx52e2Kt@$zv7zK<1MggOMQNSo*6fg=H1&jhl0i%FX;D4xq)ga`j z#|gRg1cJx^|Kq>^@1G^)SMWXf4txlXz&f}9{um+TGjI%!zya6-WpEixf|c(ZDOv;WJNXPMyH7~kFQR*x`V@b{kkoxhGaK;kLEJ6Ws8Zq2CD_l zQF_!3YNywIw#|gFnk-9a=V(UXjFWhD^_{JI4c#uJB?GaD`>u%&5b11pM@glw{lW&P z`+Uz8tWd~A&MNGd6x;endETM(^EAsi_jtA&>j`C!U`QkxSsd?aDN9jSr&JLw??AWF z<6}BdrA*Qgg^JYFX^4{LPt2j*p0m$ZxYrIVux7PcE>%%o8kDpXcS@PAqNkH6chpYi z(O-#PKXuQQ&^4S@3sQ2s7D$%MMn=0~JrmO`oG+a&ElUjQq9&5kf3!d?&aJ~lIToW4 zX-50$~}4d@KzKw z&FJX0EJ4k&>s?iZ?!qdb@^DI))Vkj3Mx_Q-7nZtgd5v(TXH)L7eauyEp>aB`LLuCX z`gGazc-xZE2saUBKer8=v#`*i*($gE)|$0%H!T#dh-u6BunQInOT~@l#Y%B~ZMVF< zQCxVl_|}5D>m78Pgqh((&w%JbG)w(RK{e@huyI7B|kUXf%T<4_omgNKt+f0v_aa!{{M~^-l zMH;W3WJsN7JrNv{uxd12O?{}E+HK!qZRScr6Z+`ZPGJZg%LDqFZ`I$ydxI|cepRg! z?m0M`U0t|VM6D0= zzBqjhE;$K`2*q57QVFwyL~+*NB^%uZno{TGZ~4PXEO literal 0 HcmV?d00001