Total Complexity | 5 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Coverage | 36.36% |
Changes | 0 |
1 | <?php |
||
27 | class IndexController extends BaseController |
||
28 | { |
||
29 | 2 | public function indexAction() |
|
33 | 2 | } |
|
34 | |||
35 | /** |
||
36 | * Check basic connectivity. Returns a timestamp. |
||
37 | * @SWG\Get( |
||
38 | * path="/ping", |
||
39 | * tags={"status"}, |
||
40 | * @SWG\Response(response="200", description="Sends a response with the time") |
||
41 | * ) |
||
42 | * |
||
43 | */ |
||
44 | 2 | public function pingAction() |
|
48 | 2 | } |
|
49 | |||
50 | /** |
||
51 | * @return Response |
||
52 | */ |
||
53 | public function apiAction() |
||
54 | { |
||
55 | $swagger = Swagger\scan(APPLICATION_PATH.'/src')->__toString(); |
||
|
|||
56 | $response = new Response(); |
||
57 | $response = $response->withHeader('Content-Type', 'application/json'); |
||
58 | $response->getBody()->write($swagger); |
||
59 | return $response; |
||
60 | } |
||
61 | |||
62 | public function fakeClientCallbackAction() |
||
66 | } |
||
67 | |||
68 | public function emailAction() |
||
75 | } |
||
76 | } |
||
77 |