Skip to content

Instantly share code, notes, and snippets.

@raank
Last active June 1, 2021 14:27
Show Gist options
  • Save raank/22b8b13563b616b10c3ba08c47a30b0e to your computer and use it in GitHub Desktop.
Save raank/22b8b13563b616b10c3ba08c47a30b0e to your computer and use it in GitHub Desktop.
<?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