mirror of
https://github.com/ambieco/scribe.git
synced 2026-04-24 02:20:05 +08:00
Separate endpoint group anem frmo group description and key by group name. Fixes #535
This commit is contained in:
44
tests/Fixtures/TestGroupController.php
Normal file
44
tests/Fixtures/TestGroupController.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
namespace Mpociot\ApiDoc\Tests\Fixtures;
|
||||
|
||||
/**
|
||||
* @group 1. Group 1
|
||||
*
|
||||
* Group 1 APIs
|
||||
*/
|
||||
class TestGroupController
|
||||
{
|
||||
|
||||
/**
|
||||
* Some endpoint.
|
||||
*
|
||||
* By default, this is in Group 1.
|
||||
*/
|
||||
public function action1()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Another endpoint
|
||||
*
|
||||
* Here we specify a group. This is also in Group 1.
|
||||
*
|
||||
* @group 1. Group 1
|
||||
*/
|
||||
public function action1b()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* @group 2. Group 2
|
||||
*/
|
||||
public function action2()
|
||||
{
|
||||
}
|
||||
|
||||
/** @group 10. Group 10 */
|
||||
public function action10()
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user