46 lines
1.2 KiB
PHP
46 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
|
|
use Illuminate\Foundation\Bus\DispatchesJobs;
|
|
use Illuminate\Foundation\Validation\ValidatesRequests;
|
|
use Illuminate\Routing\Controller as BaseController;
|
|
|
|
/**
|
|
* @OA\Info(
|
|
* title="My API",
|
|
* version="1.0.0",
|
|
* description="API documentation using L5 Swagger"
|
|
* )
|
|
*
|
|
* @OA\Server(
|
|
* url=L5_SWAGGER_CONST_HOST,
|
|
* description="API Server"
|
|
* )
|
|
*
|
|
* @OA\SecurityScheme(
|
|
* securityScheme="Authorization",
|
|
* type="http",
|
|
* scheme="bearer",
|
|
* bearerFormat="JWT"
|
|
* )
|
|
*/
|
|
class Controller extends BaseController
|
|
{
|
|
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
|
|
|
|
/**
|
|
* @OA\Schema(
|
|
* schema="UnauthorizedResponse",
|
|
* allOf={
|
|
* @OA\Schema(ref="#/components/schemas/ApiResponse"),
|
|
* @OA\Schema(
|
|
* @OA\Property(property="code", type="string", example="UNAUTHORIZED"),
|
|
* @OA\Property(property="message", type="string", example="Unauthorized"),
|
|
* @OA\Property(property="data", type="null", nullable=true)
|
|
* )
|
|
* }
|
|
* )
|
|
*/
|
|
} |