Commit c61ef65d authored by i.vasilenko@iq-adv.ru's avatar i.vasilenko@iq-adv.ru
Browse files

swagger

parent f572d835
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -13,6 +13,8 @@
    "doctrine/doctrine-migrations-bundle": "^3.3",
    "doctrine/orm": "^3.2",
    "lexik/jwt-authentication-bundle": "^3.0",
    "nelmio/api-doc-bundle": "^4.27",
    "symfony/asset": "7.0.*",
    "symfony/cache": "7.0.*",
    "symfony/console": "7.0.*",
    "symfony/dotenv": "7.0.*",
@@ -25,8 +27,11 @@
    "symfony/runtime": "7.0.*",
    "symfony/security-bundle": "7.0.*",
    "symfony/serializer": "7.0.*",
    "symfony/twig-bundle": "7.0.*",
    "symfony/validator": "7.0.*",
    "symfony/yaml": "7.0.*"
    "symfony/yaml": "7.0.*",
    "twig/extra-bundle": "^2.12|^3.0",
    "twig/twig": "^2.12|^3.0"
  },
  "require-dev": {
    "roave/security-advisories": "dev-latest",
+971 −13

File changed.

Preview size limit exceeded, changes collapsed.

+3 −0
Original line number Diff line number Diff line
@@ -7,4 +7,7 @@ return [
    Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
    Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
    Lexik\Bundle\JWTAuthenticationBundle\LexikJWTAuthenticationBundle::class => ['all' => true],
    Nelmio\ApiDocBundle\NelmioApiDocBundle::class => ['all' => true],
    Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
    Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true],
];
+21 −0
Original line number Diff line number Diff line
nelmio_api_doc:
    use_validation_groups: true
    documentation:
        servers:
            - url: http://127.0.0.1:8080
              description: Localhost
        info:
            title: Квесты
            description: Тестовое задание
            version: 1.0.0
        components:
            securitySchemes:
                Bearer:
                    type: http
                    scheme: bearer
                    bearerFormat: JWT
        security:
            - Bearer: [ ]
    areas: # to filter documented areas
        path_patterns:
            - ^/api(?!/doc$) # Accepts routes under /api except /api/doc
+1 −0
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@ security:
    # Note: Only the *first* access control that matches will be used
    access_control:
        - { path: ^/api/login, roles: PUBLIC_ACCESS }
        - { path: ^/api/doc, roles: PUBLIC_ACCESS }

        - { path: ^/api/register, roles: PUBLIC_ACCESS }
        - { path: ^/api/register/send, roles: ROLE_USER }
Loading