Merge branch 'main' of github.com:CloudVisionApps/PhyrePanel
This commit is contained in:
commit
3c0b3587d6
6 changed files with 14 additions and 22 deletions
|
@ -9,7 +9,7 @@ class HealthController extends ApiController
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @OA\Get(
|
* @OA\Get(
|
||||||
* path="/profiles",
|
* path="/api/health",
|
||||||
* @OA\Response(
|
* @OA\Response(
|
||||||
* response=200,
|
* response=200,
|
||||||
* description="Successful operation",
|
* description="Successful operation",
|
||||||
|
|
|
@ -8,16 +8,12 @@ use Illuminate\Routing\Controller as BaseController;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @OA\Info(
|
* @OA\Info(
|
||||||
* title="My First API Documentation",
|
* title="PhyrePanel - API Documentation",
|
||||||
* version="0.1",
|
* version="0.1",
|
||||||
* @OA\Contact(
|
* @OA\Contact(
|
||||||
* email="info@yeagger.com"
|
* email="info@phyrepanel.com"
|
||||||
* ),
|
* ),
|
||||||
* ),
|
* )
|
||||||
* @OA\Server(
|
|
||||||
* description="Learning env",
|
|
||||||
* url="https://foo.localhost:8000/api/"
|
|
||||||
* ),
|
|
||||||
*/
|
*/
|
||||||
class ApiController extends BaseController
|
class ApiController extends BaseController
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,7 +5,7 @@ return [
|
||||||
'documentations' => [
|
'documentations' => [
|
||||||
'default' => [
|
'default' => [
|
||||||
'api' => [
|
'api' => [
|
||||||
'title' => 'L5 Swagger UI',
|
'title' => 'PhyrePanel API Documentation',
|
||||||
],
|
],
|
||||||
|
|
||||||
'routes' => [
|
'routes' => [
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
PHYRE_PHP=/usr/local/phyre/php/bin/php
|
PHYRE_PHP=/usr/local/phyre/php/bin/php
|
||||||
|
|
||||||
rm -rf composer.lock
|
#rm -rf composer.lock
|
||||||
$PHYRE_PHP composer.phar i
|
#$PHYRE_PHP composer.phar i
|
||||||
$PHYRE_PHP artisan migrate
|
$PHYRE_PHP artisan migrate
|
||||||
|
|
||||||
|
$PHYRE_PHP artisan l5-swagger:generate
|
||||||
|
|
|
@ -14,7 +14,7 @@ use Illuminate\Support\Facades\Route;
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Route::get('health', 'HealthController@index');
|
Route::get('health', [\App\Http\Controllers\Api\HealthController::class, 'index']);
|
||||||
|
|
||||||
Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
|
Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
|
||||||
return $request->user();
|
return $request->user();
|
||||||
|
|
|
@ -1,22 +1,16 @@
|
||||||
{
|
{
|
||||||
"openapi": "3.0.0",
|
"openapi": "3.0.0",
|
||||||
"info": {
|
"info": {
|
||||||
"title": "My First API Documentation",
|
"title": "PhyrePanel - API Documentation",
|
||||||
"contact": {
|
"contact": {
|
||||||
"email": "info@yeagger.com"
|
"email": "info@phyrepanel.com"
|
||||||
},
|
},
|
||||||
"version": "0.1"
|
"version": "0.1"
|
||||||
},
|
},
|
||||||
"servers": [
|
|
||||||
{
|
|
||||||
"url": "https://foo.localhost:8000/api/",
|
|
||||||
"description": "Learning env"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"/profiles": {
|
"/health": {
|
||||||
"get": {
|
"get": {
|
||||||
"operationId": "be3ca7ec61f2f3384156bcc20722e979",
|
"operationId": "14039960f5c35aafcd0adcc381fc5f34",
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "Successful operation"
|
"description": "Successful operation"
|
||||||
|
|
Loading…
Reference in a new issue