Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的API路由是/api/v1。当我使用 JWT 和 FOSUserBundle 时,我希望在 /api-doc/v1 下拥有 swagger doc。有谁知道如何为文档设置不同的路线?
谢谢和最好的
路由.yml
NelmioApiDocBundle: resource: "@NelmioApiDocBundle/Resources/config/routing/swaggerui.xml" prefix: /api-doc
文档: https ://api-platform.com/docs/core/nelmio-api-doc