Skip to content

Commit

Permalink
remove old security definition
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst committed Feb 14, 2024
1 parent 7406995 commit e96fe98
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions API/DemoController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
use FOS\RestBundle\View\View;
use FOS\RestBundle\View\ViewHandlerInterface;
use KimaiPlugin\DemoBundle\Entity\DemoEntity;
use Nelmio\ApiDocBundle\Annotation\Security as ApiSecurity;
use OpenApi\Attributes as OA;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
Expand All @@ -38,8 +37,6 @@ public function __construct(private ViewHandlerInterface $viewHandler)
#[OA\Response(response: 200, description: 'Returns a collection of demo entities', content: new OA\JsonContent(type: 'array', items: new OA\Items(ref: '#/components/schemas/DemoEntity')))]
#[Rest\QueryParam(name: 'counter', requirements: '\d+', strict: true, nullable: true, description: 'The counter to be included in the answer (default: 1)')]
#[Route(methods: ['GET'])]
#[ApiSecurity(name: 'apiUser')]
#[ApiSecurity(name: 'apiToken')]
public function cgetAction(ParamFetcherInterface $paramFetcher): Response
{
$demo = new DemoEntity();
Expand All @@ -61,8 +58,6 @@ public function cgetAction(ParamFetcherInterface $paramFetcher): Response
#[OA\Response(response: 200, description: 'Returns one demo entity (if you pass id = 0, a NotFoundException will be thrown)', content: new OA\JsonContent(ref: '#/components/schemas/DemoEntity'))]
#[OA\Parameter(name: 'id', in: 'path', description: 'Demo ID to fetch', required: true)]
#[Route(methods: ['GET'], path: '/{id}')]
#[ApiSecurity(name: 'apiUser')]
#[ApiSecurity(name: 'apiToken')]
public function getAction(int $id): Response
{
if (0 === $id) {
Expand Down

0 comments on commit e96fe98

Please sign in to comment.