OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
API
/
vendor
/
zircote
/
swagger-php
/
Examples
/
nesting
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/07/2024 04:34:50 AM
rwxr-xr-x
📄
ActualModel.php
280 bytes
08/07/2024 04:34:25 AM
rw-r--r--
📄
AlmostModel.php
285 bytes
08/07/2024 04:34:25 AM
rw-r--r--
📄
ApiController.php
1.1 KB
08/07/2024 04:34:25 AM
rw-r--r--
📄
BaseModel.php
255 bytes
08/07/2024 04:34:25 AM
rw-r--r--
📄
IntermediateModel.php
289 bytes
08/07/2024 04:34:25 AM
rw-r--r--
📄
SoCloseModel.php
281 bytes
08/07/2024 04:34:25 AM
rw-r--r--
📄
nesting.yaml
1.39 KB
08/07/2024 04:34:25 AM
rw-r--r--
Editing: ApiController.php
Close
<?php declare(strict_types=1); /** * @license Apache 2.0 */ namespace OpenApi\Examples\Nesting; use OpenApi\Annotations as OA; /** * An entity controller class. * * @OA\Info( * version="1.0.0", * title="Nested schemas", * description="Example info", * @OA\Contact(name="Swagger API Team") * ) * @OA\Server( * url="https://example.localhost", * description="API server" * ) * @OA\Tag( * name="api", * description="All API endpoints" * ) */ class ApiController { /** * @OA\Get( * tags={"api"}, * path="/entity/{id}", * description="Get the entity", * @OA\Parameter( * name="id", * in="path", * required=true, * @OA\Schema( * type="integer", * format="int64", * ) * ), * @OA\Response( * response="200", * description="successful operation", * @OA\JsonContent(ref="#/components/schemas/ActualModel") * ) * ) */ public function get($id) { } }