OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
API
/
vendor
/
zircote
/
swagger-php
/
Examples
/
using-refs
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/07/2024 04:34:50 AM
rwxr-xr-x
📄
Model.php
207 bytes
08/07/2024 04:34:27 AM
rw-r--r--
📄
OpenApiSpec.php
2.65 KB
08/07/2024 04:34:27 AM
rw-r--r--
📄
Product.php
754 bytes
08/07/2024 04:34:27 AM
rw-r--r--
📄
ProductController.php
910 bytes
08/07/2024 04:34:27 AM
rw-r--r--
📄
PropertyRefController.php
481 bytes
08/07/2024 04:34:27 AM
rw-r--r--
📄
StockLevel.php
222 bytes
08/07/2024 04:34:27 AM
rw-r--r--
📄
using-refs.yaml
2.46 KB
08/07/2024 04:34:27 AM
rw-r--r--
Editing: Product.php
Close
<?php namespace OpenApi\Examples\UsingRefs; use OpenApi\Annotations as OA; /** * A common scenario is to let swagger-php generate a definition based on your model class. * These definitions can then be referenced with `ref="#/components/schemas/$classname". */ /** * @OA\Schema( * description="Product model", * type="object", * title="Product model" * ) */ class Product extends Model { /** * The unique identifier of a product in our catalog. * * @var int * * @OA\Property(format="int64", example=1) */ public $id; /** * @OA\Property(ref="#/components/schemas/product_status") */ public $status; /** * @OA\Property */ public StockLevel $stockLevel; }