forked from zircote/swagger-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOpenApiSpec.php
More file actions
48 lines (44 loc) · 1014 Bytes
/
OpenApiSpec.php
File metadata and controls
48 lines (44 loc) · 1014 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
41
42
43
44
45
46
47
48
<?php
namespace OpenApi\Examples\SwaggerSpec\PetstoreSimple;
use OpenApi\Annotations as OA;
/**
* @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", identifier="MIT")
* ),
* )
* @OA\Tag(
* name="store",
* description="The Pet Store"
* )
*/
class OpenApiSpec
{
}
/**
* @OA\Schema(
* schema="ErrorModel",
* required={"code", "message"},
* @OA\Property(
* property="code",
* type="integer",
* format="int32"
* ),
* @OA\Property(
* property="message",
* type="string"
* )
* )
*/
class ErrorModel
{
}