1 | <?php |
||
27 | class IndexController extends BaseController |
||
28 | { |
||
29 | 1 | public function indexAction() |
|
30 | { |
||
31 | 1 | } |
|
32 | |||
33 | /** |
||
34 | * Check basic connectivity. Returns a timestamp. |
||
35 | * @SWG\Get( |
||
36 | * path="/ping", |
||
37 | * tags={"status"}, |
||
38 | * @SWG\Response(response="200", description="Sends a response with the time") |
||
39 | * ) |
||
40 | * |
||
41 | */ |
||
42 | public function pingAction() |
||
47 | |||
48 | /** |
||
49 | * @return Response |
||
50 | */ |
||
51 | public function apiAction() |
||
52 | { |
||
53 | $swagger = Swagger\scan(APPLICATION_PATH.'/src')->__toString(); |
||
54 | $response = new Response(); |
||
55 | $response = $response->withHeader('Content-Type', 'application/json'); |
||
56 | $response->getBody()->write($swagger); |
||
57 | return $response; |
||
58 | } |
||
59 | |||
60 | public function fakeClientCallbackAction() |
||
65 | } |
||
66 |