| 1 | <?php |
||
| 11 | class UserController extends Controller |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Fetch user details |
||
| 15 | * @SWG\Get( |
||
| 16 | * path="/user/{id}", |
||
| 17 | * tags={"users"}, |
||
| 18 | * @SWG\Parameter( |
||
| 19 | * name="id", |
||
| 20 | * in="path", |
||
| 21 | * type="integer", |
||
| 22 | * description="the type of response", |
||
| 23 | * required=false, |
||
| 24 | * default=1 |
||
| 25 | * ), |
||
| 26 | * @SWG\Response(response="200", description="Sends user details") |
||
| 27 | * ) |
||
| 28 | * |
||
| 29 | */ |
||
| 30 | public function indexAction() |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Register as a new user. |
||
| 45 | * @SWG\Post( |
||
| 46 | * path="/user/register", |
||
| 47 | * tags={"users"}, |
||
| 48 | * @SWG\Response(response="200", description="Registers a new unactivated user") |
||
| 49 | * ) |
||
| 50 | * |
||
| 51 | */ |
||
| 52 | public function registerAction() |
||
| 57 | } |
||
| 58 |