Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Alavi committed Dec 8, 2024
1 parent f063d8b commit 3b8891e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/Generator/Stubs/routes/api.mac.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

/**
* @apiGroup {{container-name}}
* @apiName {{doc-api-name}}
*
* @api {{{doc-http-verb}}} {{doc-endpoint-url}} {{endpoint-title}}
* @apiDescription Endpoint description here...
*
* @apiVersion {{endpoint-version}}.0.0
* @apiPermission Authenticated ['permissions' => '', 'roles' => '']
*
* @apiHeader {String} accept=application/json
* @apiHeader {String} authorization=Bearer
*
* @apiParam {String} parameters here...
*
* @apiSuccessExample {json} Success-Response:
* HTTP/1.1 200 OK
* {
* // Insert the response of the request here...
* }
*/

use App\Containers\{{section-name}}\{{container-name}}\UI\API\Controllers\{{controller-name}};
use Illuminate\Support\Facades\Route;

Route::{{http-verb}}('{{endpoint-url}}', {{controller-name}}::class)
->middleware(['auth:{{auth-middleware}}']);

0 comments on commit 3b8891e

Please sign in to comment.