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 0000000000..740b4fd8d9 Binary files /dev/null and b/webapp/src/FosRestBundle/.FlattenExceptionHandler.php.swp differ