forked from zircote/swagger-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathController.php
More file actions
40 lines (37 loc) · 781 Bytes
/
Controller.php
File metadata and controls
40 lines (37 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
namespace OpenApi\Examples\Polymorphism;
use OpenApi\Annotations as OA;
/**
* @OA\Info(
* title="Polymorphism",
* description="Polymorphism example",
* version="1",
* @OA\Contact(name="Swagger API Team")
* )
* @OA\Tag(
* name="api",
* description="API operations"
* )
* @OA\Server(
* url="https://example.localhost",
* description="API server"
* )
*/
class Controller
{
/**
* @OA\Get(
* path="/test",
* description="Get test",
* tags={"api"},
* @OA\Response(
* response="200",
* description="Polymorphism",
* @OA\JsonContent(ref="#/components/schemas/Request")
* )
* )
*/
public function getProduct($id)
{
}
}