feat: Integrate L5-Swagger for API documentation and enhance VM synchronization to include host-level details.

This commit is contained in:
pbao9
2026-02-15 12:31:06 +07:00
parent eb123ba97c
commit ef53ea3207
19 changed files with 3040 additions and 13433 deletions
@@ -5,8 +5,32 @@ namespace App\Http\Controllers\Api\Setting;
use App\Http\Controllers\Controller;
use App\Models\Setting;
/**
* @OA\Tag(
* name="Settings",
* description="API Endpoints for Application Settings"
* )
*/
class SettingController extends Controller
{
/**
* @OA\Get(
* path="/setting",
* operationId="getSetting",
* tags={"Settings"},
* summary="Get application settings",
* description="Returns the application settings",
* @OA\Response(
* response=200,
* description="Successful operation",
* @OA\JsonContent(
* @OA\Property(property="data", type="object"),
* @OA\Property(property="message", type="string", example="Get setting successfully"),
* @OA\Property(property="error", type="boolean", example=false)
* )
* )
* )
*/
public function getSetting()
{
$setting = Setting::where('key', 'setting')->first();