-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathControllerInterface.php
More file actions
43 lines (39 loc) · 1.12 KB
/
ControllerInterface.php
File metadata and controls
43 lines (39 loc) · 1.12 KB
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
<?php
namespace asbamboo\api;
use asbamboo\http\ResponseInterface;
/**
*
* @author 李春寅 <licy2013@aliyun.com>
* @since 2018年9月24日
*/
interface ControllerInterface
{
/**
* 查看api文档
* - 通过解析api类相关的注释生成api文档
*
* @param string $version
* @param string $api_name
* @return ResponseInterface
*/
public function doc(string $version = '', string $api_name = ''): ResponseInterface;
/**
* api调试工具
* 响应结果是一个调试表单
* 通过调试页面可以确定正确请求时应该需要的请求参数,和响应结果
*
* @param string $version
* @param string $api_name
* @param string $uri
* @return ResponseInterface
*/
public function testTool(string $version = '', string $api_name = '', string $uri) : ResponseInterface;
/**
* http请求一个api接口, 获取一个响应信息
*
* @param string $version
* @param string $api_name
* @return ResponseInterface
*/
public function api(string $version, string $api_name) : ResponseInterface;
}