| 1 | <?php |
||
| 17 | class Api extends Controller |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @api {get} / Server & API Status |
||
| 21 | * @apiVersion 2.0.0 |
||
| 22 | * @apiName get |
||
| 23 | * @apiGroup Api |
||
| 24 | * @apiPermission none |
||
| 25 | * @apiDescription Get server time and api status/version |
||
| 26 | * |
||
| 27 | * @apiExample Example usage: |
||
| 28 | * curl -XGET "https://SERVER/api/v2?pretty" |
||
| 29 | * |
||
| 30 | * @apiSuccess {string} name balloon identifier |
||
| 31 | * @apiSuccess {number} api_version API Version |
||
| 32 | * @apiSuccessExample {json} Success-Response: |
||
| 33 | * HTTP/1.1 200 OK |
||
| 34 | * { |
||
| 35 | * "name": "balloon", |
||
| 36 | * "api_version": 2 |
||
| 37 | * } |
||
| 38 | * |
||
| 39 | * @return Response |
||
| 40 | */ |
||
| 41 | public function get(): Response |
||
| 50 | } |
||
| 51 |