| Total Complexity | 2 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class InfoController |
||
| 15 | { |
||
| 16 | public function __construct(private VersionProvider $versionProvider) |
||
| 17 | { |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @OA\Get( |
||
| 22 | * path="/", |
||
| 23 | * summary="Returns info about the API", |
||
| 24 | * description="", |
||
| 25 | * @OA\Response( |
||
| 26 | * response="200", |
||
| 27 | * description="Success", |
||
| 28 | * @OA\JsonContent( |
||
| 29 | * allOf={ |
||
| 30 | * @OA\Schema(ref="#/components/schemas/Response"), |
||
| 31 | * @OA\Schema( |
||
| 32 | * @OA\Property( |
||
| 33 | * property="data", |
||
| 34 | * type="object", |
||
| 35 | * @OA\Property( |
||
| 36 | * property="version", |
||
| 37 | * type="string", |
||
| 38 | * example="3.0" |
||
| 39 | * ), |
||
| 40 | * @OA\Property( |
||
| 41 | * property="author", |
||
| 42 | * type="string", |
||
| 43 | * example="yiisoft" |
||
| 44 | * ), |
||
| 45 | * ), |
||
| 46 | * ), |
||
| 47 | * }, |
||
| 48 | 1 | * ) |
|
| 49 | * ), |
||
| 50 | 1 | * ) |
|
| 51 | */ |
||
| 52 | public function index(DataResponseFactoryInterface $responseFactory): ResponseInterface |
||
| 55 | } |
||
| 56 | } |
||
| 57 |