NelmioApiDocBundle icon indicating copy to clipboard operation
NelmioApiDocBundle copied to clipboard

Installation along symfony/asset_mapper

Open artur2000 opened this issue 1 year ago • 2 comments

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?

artur2000 avatar Dec 21 '23 19:12 artur2000

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

lcp0578 avatar Jan 23 '24 08:01 lcp0578

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

lcp0578 avatar Feb 20 '24 08:02 lcp0578