Skip to content

Commit bfe32af

Browse files
fix: service controller references for "api_doc" route (#2119)
* fix: Symfony service controller reference for "api_doc" route * fix: laravel service controller reference for "api_doc" route --------- Co-authored-by: Vincent Amstoutz <[email protected]>
1 parent af10348 commit bfe32af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/openapi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ Manually register the Swagger UI controller:
637637
# app/config/routes.yaml
638638
api_doc:
639639
path: /api_documentation
640-
controller: api_platform.swagger_ui.processor
640+
controller: api_platform.action.documentation
641641
```
642642
643643
Change `/api_documentation` to the URI you wish Swagger UI to be accessible on.
@@ -649,9 +649,9 @@ Manually register the Swagger UI controller:
649649
```php
650650
// routes/web.php
651651
use Illuminate\Support\Facades\Route;
652-
use ApiPlatform\Laravel\State\SwaggerUiProcessor;
652+
use ApiPlatform\Laravel\Controller\DocumentationController;
653653
654-
Route::post('/api_documentation', SwaggerUiProcessor::class)
654+
Route::post('/api_documentation', DocumentationController::class)
655655
->name('api_doc');
656656
```
657657

0 commit comments

Comments
 (0)