You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
613 B
31 lines
613 B
<?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)
|
|
{
|
|
}
|
|
}
|
|
|