Nelmioapidocbundle: documentation + full config nelmio 3.1 / swagger

Created on 30 Jan 2018  路  8Comments  路  Source: nelmio/NelmioApiDocBundle

Hello,

is anybody have a complete configuration for Symfony nelmio/swagger 3.1 ?

nelmio_api_doc:
    sandbox:
        enabled:  false
    documentation:

        info:
            title: 'Documentation API'
            description: This is an awesome app!
            version: 1.0.0
    areas:
        path_patterns:
            - ^/api(?!/doc$)

I would like disable sandbox but i've got this error :

Unrecognized option "sandbox" under "nelmio_api_doc"

All 8 comments

you can see the full configuration with bin/console config:dump-reference NelmioApiDocBundle. does that help?
if the doc about how to enable the sandbox is currently incorrect, it would be great if you can do a pull request to fix it.

Why would you need to disable the Sandbox ? Not enabling the route has the same effect.

in fact i write a new project symfony 3.4 with the new nelmio 3.1 with swagger (i follow this post : https://symfony.com/doc/current/bundles/NelmioApiDocBundle/index.html) but Swagger is not working.

I post my configuration as soon as possible, I'm doing more testing

thank for yours responses.

Maybe you need to install assets and twig ?

yop !
@GuilhemN nop assets it's working ans my API run fine.
After few test to show the doc, I had forgotten a "" in the comment !!! tsssss it's working fine now with "/*" ^^

You forgot because documentation at
https://symfony.com/doc/master/bundles/NelmioApiDocBundle/index.html

only shows one *, please fix documentation, thanks

Indeed, good catch @sergiodebcn :) It's fixed.

how to remove the list of models from the documentation page?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alxfv picture alxfv  路  5Comments

BraisGabin picture BraisGabin  路  7Comments

smuralidharan picture smuralidharan  路  3Comments

timotheemoulin picture timotheemoulin  路  5Comments

BafS picture BafS  路  3Comments