-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f063d8b
commit 3b8891e
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
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
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}}']); | ||
|