Bundle Nelmio ne s'affiche pas API

Par Malaury, il y a 4 ans


hello hello! sur creation service api, j'ai installé le bundle Nelmio pour les annotations ! j'ai suivi toute la doc!
mon fichier routes.yaml est

app.swagger_ui: path: /api/doc methods: GET defaults: { _controller: nelmio_api_doc.controller.swagger_ui }

mon fichier security.yaml :

firewalls: api_doc: pattern: ^/api/doc security: false dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false login: pattern: ^/login stateless: true json_login: check_path: /login_check success_handler: lexik_jwt_authentication.handler.authentication_success failure_handler: lexik_jwt_authentication.handler.authentication_failure api: pattern: ^/ stateless: true guard: authenticators: - lexik_jwt_authentication.jwt_token_authenticator et mon fichier nelmio_api_doc.yaml est nelmio_api_doc: areas: path_patterns: # an array of regexps - ^/api(?!/doc$) host_patterns: - ^api\.

mon navigateur ne me renvoit pas la page nelmio mais juste :
le lien NelmioApiDoc avec un onglet photo sans photo!!

est ce que vous sauriez m'orienter? merci bien

1 réponse

Malaury, il y a 4 ans

ce n'est pas la meme chose !! message non resolu Jss

Neanmoins pour aider d'autres personnes : ne pas oublier de faire le "composer require asset" , penser à le refaire si il y a eu un composer install de refait !

Maintenant il l'est !