amber-laravel/app/Http/Controllers/Web/ToolController.php
2024-07-24 00:40:56 +08:00

75 lines
1.5 KiB
PHP

<?php
namespace App\Http\Controllers\Web;
use Apiboard\OpenAPI\OpenAPI;
use App\Http\Controllers\Controller;
use cebe\openapi\exceptions\IOException;
use cebe\openapi\exceptions\TypeErrorException;
use cebe\openapi\exceptions\UnresolvableReferenceException;
use cebe\openapi\json\InvalidJsonPointerSyntaxException;
use Illuminate\Http\Request;
class ToolController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index()
{
//
}
/**
* @throws IOException
* @throws TypeErrorException
* @throws UnresolvableReferenceException
* @throws InvalidJsonPointerSyntaxException
*/
public function getOpenAPI()
{
$url = 'http://127.0.0.1:8081/openapi.yml';
$file = file_get_contents($url);
// $openAPI = new OpenAPI();
//
// $document = $openAPI->parse($file);
//
//
// dd($document->openapi());
}
/**
* Store a newly created resource in storage.
*/
public function store(Request $request)
{
//
}
/**
* Display the specified resource.
*/
public function show(string $id)
{
//
}
/**
* Update the specified resource in storage.
*/
public function update(Request $request, string $id)
{
//
}
/**
* Remove the specified resource from storage.
*/
public function destroy(string $id)
{
//
}
}