Back
Syntax
Study
Editor
Mode:
HTML
CSS
JavaScript
PHP
Reset
Run »
HTML / CSS / JS
# Install L5-Swagger (Laravel OpenAPI) composer require darkaonline/l5-swagger # Annotate controllers with PHP attributes /** * @OA\Get(path="/api/users", summary="List users", * @OA\Response(response=200, description="Success", * @OA\JsonContent(type="array", @OA\Items(ref="#/components/schemas/User")) * ) * ) */ # Generate: php artisan l5-swagger:generate # Docs at: /api/documentation
Result
Open