30 lines
855 B
PHP
30 lines
855 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use OpenApi\Attributes as OA;
|
|
|
|
#[OA\Info(
|
|
version: '1.0.0',
|
|
title: 'Moonwell Launcher API',
|
|
description: 'API для лаунчера WoW-клиента Moonwell. Авторизация, получение манифеста файлов и скачивание обновлений.',
|
|
)]
|
|
#[OA\SecurityScheme(
|
|
securityScheme: 'bearerAuth',
|
|
type: 'http',
|
|
scheme: 'bearer',
|
|
bearerFormat: 'JWT',
|
|
description: 'Токен, полученный через POST /api/launcher/login',
|
|
)]
|
|
#[OA\SecurityScheme(
|
|
securityScheme: 'launcherAuth',
|
|
type: 'apiKey',
|
|
name: 'Auth',
|
|
in: 'header',
|
|
description: 'Сервисный ключ из LAUNCHER_AUTH_KEY для запросов лаунчера к служебным endpoint-ам.',
|
|
)]
|
|
abstract class Controller
|
|
{
|
|
//
|
|
}
|