nelmio / NelmioApiDocBundle

Generates documentation for your REST API from annotations
MIT License
2.23k stars 836 forks source link

Installation along symfony/asset_mapper #2169

Open artur2000 opened 11 months ago

artur2000 commented 11 months ago

Hi,

I started fresh project with symfony 6.4 for a web project which should serve an API at the same time. During kikstart of this project symfony/asset_mapper has been installed. I do not really know if I will use the asset_mapper, but I would like to try it.

The problem is now, that the swagger_ui endpoint of nelmio api doc does not work with the asset_mapper activated. All assets for the UI deliver 404. If I uninstall asset_mapper, the UI is fine.

The question is now, how to configure the project to get swagger_ui to work with asset_mapper installed?

lcp0578 commented 9 months ago

+1 , symfony 6.4 "nelmio/api-doc-bundle": v4.18.2, image

lcp0578 commented 9 months ago

@artur2000 need run command php bin/console asset-map:compile