%PDF- %PDF-
Direktori : /var/www/html/shaban/duassis/api/vendor/zircote/swagger-php/Examples/using-refs/ |
Current File : //var/www/html/shaban/duassis/api/vendor/zircote/swagger-php/Examples/using-refs/Product.php |
<?php namespace UsingRefs; ?> 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" <?php /** * @OA\Schema( * description="Product model", * type="object", * title="Product model" * ) */ class Product { /** * The unique identifier of a product in our catalog. * * @var integer * @OA\Property(format="int64", example=1) */ public $id; /** * @OA\Property(ref="#/components/schemas/product_status") */ public $status; }