coupon-admin/vendor/zircote/swagger-php/Examples/using-interfaces/ProductController.php

32 lines
613 B
PHP

<?php
namespace UsingInterfaces;
class ProductController
{
/**
* @OA\Get(
* tags={"Products"},
* path="/products/{id}",
* @OA\Parameter(
* description="ID of product to return",
* in="path",
* name="id",
* required=true,
* @OA\Schema(
* type="string"
* )
* ),
* @OA\Response(
* response="default",
* description="successful operation",
* @OA\JsonContent(ref="#/components/schemas/Product")
* )
* )
*/
public function getProduct($id)
{
}
}