Last active
June 1, 2021 14:27
-
-
Save raank/22b8b13563b616b10c3ba08c47a30b0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once __DIR__.'/../vendor/autoload.php'; | |
/* | |
|-------------------------------------------------------------------------- | |
| Instance Environment Variables. | |
|-------------------------------------------------------------------------- | |
*/ | |
(new Laravel\Lumen\Bootstrap\LoadEnvironmentVariables( | |
dirname(__DIR__) | |
))->bootstrap(); | |
/* | |
|-------------------------------------------------------------------------- | |
| Define constants to Documentation. | |
|-------------------------------------------------------------------------- | |
| Define yours variables like a constants | |
| to using with Swagger documentation. | |
*/ | |
define('APP_URL', env('APP_URL')); | |
define('APP_NAME', env('APP_NAME')); | |
/** | |
* Define informations of Your API. | |
* | |
* @OA\Info( | |
* title=APP_NAME, | |
* description="This is a documentation of my first project.", | |
* version="1.0.", | |
* @OA\Contact( | |
* email="[email protected]" | |
* ) | |
* ) | |
* | |
* | |
* Define your application URL. | |
* | |
* @OA\Server(url=APP_URL) | |
* | |
* | |
* Organize your API Documentation with Tags. | |
* | |
* @OA\Tag(name="crud", description="My Crud Tag") | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment