-
Notifications
You must be signed in to change notification settings - Fork 23
/
api.php
80 lines (76 loc) · 2.12 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
declare(strict_types=1);
/*
* This file is part of the your app package.
*
* The PHP Application For Code Poem For You.
* (c) 2018-2099 http://yourdomian.com All rights reserved.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* API 定义.
*
* - 路由相关主要由路由服务提供者进行设置。
* - 大部分场景只需要使用基于路径的默认路由,不需要配置路由。
* - 1.1.0-alpha.2 之前的版本,定制路由都是基于 OpenAPI 的路由,之后采用 PHP 8 注解实现。
*
* @see 路由服务提供者 \Common\Infra\ProviderRouter
* @see 基于 PHP 8 注解路由 \App\App\Controller\Petstore\Store
*
* @OA\Info(
* description="This is a sample Petstore server. You can find
* out more about Swagger at
* [http://swagger.io](http://swagger.io) or on
* [irc.freenode.net, #swagger](http://swagger.io/irc/).",
* version="1.0.0",
* title="Swagger Petstore",
* termsOfService="http://swagger.io/terms/",
* @OA\Contact(
* email="apiteam@swagger.io"
* ),
* @OA\License(
* name="Apache 2.0",
* url="http://www.apache.org/licenses/LICENSE-2.0.html"
* )
* )
*/
class _
{
// 占位防止代码格式化工具将注释破坏
}
/**
* @OA\Tag(
* name="pet",
* description="Everything about your Pets",
* @OA\ExternalDocumentation(
* description="Find out more",
* url="http://swagger.io"
* )
* )
* @OA\Tag(
* name="store",
* description="Access to Petstore orders",
* )
* @OA\Tag(
* name="user",
* description="Operations about user",
* @OA\ExternalDocumentation(
* description="Find out more about store",
* url="http://swagger.io"
* )
* )
* @OA\Server(
* description="SwaggerHUB API Mocking 1.0.0",
* url="https://virtserver.swaggerhub.com/swagger/Petstore"
* )
* @OA\ExternalDocumentation(
* description="Find out more about Swagger",
* url="http://swagger.io",
* )
*/
class __
{
// 占位防止代码格式化工具将注释破坏
}