简体   繁体   中英

How to enable authorize in Swagger.?

In my project, the api_platform.yaml file is created in the routes folder, not in the packages folder. I can't make changes to api_platform.yaml.

  1. I moved api_platform.yaml file from routes folder to packages folder swagger didn't work.
  2. I tried localizing the api_platform.yaml file and it didn't work.

Try reinstalling API Platform from scratch :

symfony new my-new-app
cd my-new-app
composer require api

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM