You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OpenApi 3.x, swagger-php and swagger-ui support multiple servers / base URLs to be defined.
However, l5-swagger.php config file will not accept an array - or anything else for that matter - to have multiple servers end up in the servers array in the open-api-docs.json.
I've tried in l5-swagger.php:
/*
* Edit to set the api's base path
*/
'base' => env('L5_SWAGGER_BASE_PATH', [
['url' => env('API_URL')],
['url' => env('APP_URL')],
]),
/*
* Edit to set the api's base path
*/
'base' => env('L5_SWAGGER_BASE_PATH', [
env('API_URL'),
env('APP_URL'),
]),
Could support for this be added? It is quite useful.
Or this there another way to hook into the open-api-docs.json generation to add it manually in the meantime?
The text was updated successfully, but these errors were encountered:
Description:
OpenApi 3.x, swagger-php and swagger-ui support multiple servers / base URLs to be defined.
However, l5-swagger.php config file will not accept an array - or anything else for that matter - to have multiple servers end up in the servers array in the open-api-docs.json.
I've tried in l5-swagger.php:
Both do not result in the proper structure:
Could support for this be added? It is quite useful.
Or this there another way to hook into the open-api-docs.json generation to add it manually in the meantime?
The text was updated successfully, but these errors were encountered: