59 lines
1.3 KiB
PHP
59 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
|
|
use Illuminate\Foundation\Validation\ValidatesRequests;
|
|
use Illuminate\Routing\Controller as BaseController;
|
|
|
|
/**
|
|
* @OA\Info(
|
|
* version="1.0.0",
|
|
* title="Blog API Documentation",
|
|
* description="Blog system API documentation",
|
|
* @OA\Contact(
|
|
* email="admin@example.com"
|
|
* )
|
|
* )
|
|
*
|
|
* @OA\Server(
|
|
* url=L5_SWAGGER_CONST_HOST,
|
|
* description="API Server"
|
|
* )
|
|
*
|
|
* @OA\SecurityScheme(
|
|
* securityScheme="bearerAuth",
|
|
* type="http",
|
|
* scheme="bearer",
|
|
* bearerFormat="JWT"
|
|
* )
|
|
*
|
|
* @OA\Tag(
|
|
* name="Authentication",
|
|
* description="API Endpoints for user authentication"
|
|
* )
|
|
* @OA\Tag(
|
|
* name="Posts",
|
|
* description="API Endpoints for blog posts"
|
|
* )
|
|
* @OA\Tag(
|
|
* name="Comments",
|
|
* description="API Endpoints for post comments"
|
|
* )
|
|
* @OA\Tag(
|
|
* name="Categories",
|
|
* description="API Endpoints for post categories"
|
|
* )
|
|
* @OA\Tag(
|
|
* name="Users",
|
|
* description="API Endpoints for user management"
|
|
* )
|
|
* @OA\Tag(
|
|
* name="Statistics",
|
|
* description="API Endpoints for statistics"
|
|
* )
|
|
*/
|
|
class Controller extends BaseController
|
|
{
|
|
use AuthorizesRequests, ValidatesRequests;
|
|
}
|