feat: Integrate L5-Swagger for API documentation and enhance VM synchronization to include host-level details.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user