| Total Complexity | 1 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class IndexController |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @OA\Get( |
||
| 18 | * path="/", |
||
| 19 | * summary="Returns info about the API", |
||
| 20 | * description="", |
||
| 21 | * |
||
| 22 | * @OA\Response( |
||
| 23 | * response="200", |
||
| 24 | * description="Success", |
||
| 25 | * |
||
| 26 | * @OA\JsonContent( |
||
| 27 | * allOf={ |
||
| 28 | * |
||
| 29 | * @OA\Schema(ref="#/components/schemas/Response"), |
||
| 30 | * @OA\Schema( |
||
| 31 | * |
||
| 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 | * ) |
||
| 49 | * ), |
||
| 50 | * ) |
||
| 51 | */ |
||
| 52 | public function index(DataResponseFactoryInterface $responseFactory): ResponseInterface |
||
| 57 |