1. Go to this page and download the library: Download wilkques/openapi library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
/**
* @Request({
* "summary": "test get /api/test index",
* "description": "Test route description",
* "tags": ["Test"],
* "security": [{"bearerAuth": []}],
* "parameters": [
* {
* "in": "query",
* "name": "test",
* "ue of the custom parameter is "only", then display only the custom parameters. If the value is "merge", then merge the custom parameters with the results of the FormRequest. The default value is "merge".
* "content": {
* "multipart/form-data": {
* "schema": {
* "type": "object",
* "
/**
* @exclude
*/
public function destroy($id)
'only' => [
'namespace' => [
// 'App\Http\Controllers',
],
],
'exclude' => [
'routes' => [
'uri' => [
// route uri
],
'name' => [
// route name or as
]
],
],