OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
API
/
vendor
/
zircote
/
swagger-php
/
Examples
/
using-traits
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/07/2024 04:34:50 AM
rwxr-xr-x
📄
BellsAndWhistles.php
359 bytes
08/07/2024 04:34:27 AM
rw-r--r--
📄
Blink.php
265 bytes
08/07/2024 04:34:27 AM
rw-r--r--
📄
Colour.php
238 bytes
08/07/2024 04:34:27 AM
rw-r--r--
📁
Decoration
-
08/07/2024 04:34:51 AM
rwxr-xr-x
📄
DeleteEntity.php
675 bytes
08/07/2024 04:34:27 AM
rw-r--r--
📄
OpenApiSpec.php
508 bytes
08/07/2024 04:34:27 AM
rw-r--r--
📄
Product.php
456 bytes
08/07/2024 04:34:27 AM
rw-r--r--
📄
ProductController.php
1017 bytes
08/07/2024 04:34:27 AM
rw-r--r--
📄
SimpleProduct.php
398 bytes
08/07/2024 04:34:27 AM
rw-r--r--
📄
TrickyProduct.php
356 bytes
08/07/2024 04:34:27 AM
rw-r--r--
📄
using-traits.yaml
3.36 KB
08/07/2024 04:34:27 AM
rw-r--r--
Editing: ProductController.php
Close
<?php namespace OpenApi\Examples\UsingTraits; use OpenApi\Annotations as OA; /** * A controller. */ class ProductController { use DeleteEntity; /** * @OA\Get( * tags={"Products"}, * path="/products/{product_id}", * @OA\Parameter( * description="ID of product to return", * in="path", * name="product_id", * required=true, * @OA\Schema( * type="string" * ) * ), * @OA\Response( * response="default", * description="successful operation", * @OA\JsonContent( * oneOf={ * @OA\Schema(ref="#/components/schemas/SimpleProduct"), * @OA\Schema(ref="#/components/schemas/Product"), * @OA\Schema(ref="#/components/schemas/TrickyProduct") * } * ) * ) * ) */ public function getProduct($id) { } }