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.
34 lines
606 B
34 lines
606 B
<?php
|
|
|
|
namespace UsingTraits;
|
|
|
|
/**
|
|
* 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"
|
|
* )
|
|
* )
|
|
*/
|
|
public function getProduct($id)
|
|
{
|
|
}
|
|
}
|
|
|