forked from zircote/swagger-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.php
35 lines (33 loc) · 813 Bytes
/
api.php
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
<?php
/**
* @OA\OpenApi(
* @OA\Server(
* url="petstore.swagger.io",
* description="API server"
* ),
* @OA\Info(
* version="1.0.0",
* title="Swagger Petstore",
* description="A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification",
* termsOfService="http://swagger.io/terms/",
* @OA\Contact(name="Swagger API Team"),
* @OA\License(name="MIT")
* ),
* )
*/
/**
* @OA\Schema(
* schema="ErrorModel",
* type="object",
* required={"code", "message"},
* @OA\Property(
* property="code",
* type="integer",
* format="int32"
* ),
* @OA\Property(
* property="message",
* type="string"
* )
* )
*/