0
votes

I have just implemented a little api using Laravel. Now I'm traying to document it using swagger. I just added the following dependency "darkaonline/l5-swagger": "^5.5" in composer.json When I'm trying to genereate it using the following command: php artisan l5-swagger:generate

I receive the next error message: Error Required @OA\Info() not found

Location Myproject/vendor/zircote/swagger-php/src/Logger.php I don't understand why the error is casued if Logger.php is auto created after "darkaonline/l5-swagger": "^5.5".

1

1 Answers

2
votes

You need to add a @OA\Info to describe the project see bellow:

/**
* @OA\Info(title="API", version="0.0.1")
**/