Created
January 30, 2025 16:13
-
-
Save nicholascourage/4c696d2b1320aaf258a18fa873101150 to your computer and use it in GitHub Desktop.
Controller.php with Swagger Notation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Foundation\Auth\Access\AuthorizesRequests; | |
use Illuminate\Foundation\Bus\DispatchesJobs; | |
use Illuminate\Foundation\Validation\ValidatesRequests; | |
use Illuminate\Routing\Controller as BaseController; | |
class Controller extends BaseController | |
{ | |
/** | |
* @OA\Info( | |
* version="1.0.0", | |
* title="Admin Server with Swagger and Passport Auth Documentation", | |
* description="Admin API Server", | |
* @OA\Contact( | |
* email="" | |
* ), | |
* ) | |
* | |
* @OA\Server( | |
* url="/api", | |
* description="Admin API Server" | |
* ), | |
* @OA\SecurityScheme( | |
* securityScheme="bearerAuth", | |
* type="http", | |
* scheme="bearer", | |
* bearerFormat="JWT", | |
* ) | |
* | |
* | |
*/ | |
use AuthorizesRequests, DispatchesJobs, ValidatesRequests; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment