<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

/**
 * @OA\Post(
 *     path="/oauth/token",
 *     summary="Obtener token OAuth2",
 *     description="Genera un token Bearer usando client_id y client_secret (Client Credentials Grant)",
 *     tags={"Auth"},
 *     @OA\RequestBody(
 *         required=true,
 *         @OA\JsonContent(
 *             type="object",
 *             @OA\Property(property="grant_type", type="string", example="client_credentials"),
 *             @OA\Property(property="client_id", type="string", example="3"),
 *             @OA\Property(property="client_secret", type="string", example="XXXXXXXXXXXXXXXX"),
 *             @OA\Property(property="scope", type="string", example="*")
 *         )
 *     ),
 *     @OA\Response(
 *         response=200,
 *         description="Token generado",
 *         @OA\JsonContent(
 *             type="object",
 *             @OA\Property(property="token_type", type="string", example="Bearer"),
 *             @OA\Property(property="expires_in", type="integer", example=3600),
 *             @OA\Property(property="access_token", type="string", example="eyJ0eXAiOiJKV1QiLCJh...")
 *         )
 *     )
 * )
 */
class AuthController extends Controller
{
    //
}
