Ejemplo n.º 1
0
 /**
  * @SWG\Get(
  *     path="rewards/{id}",
  *     description="Returns a reward by id",
  *     summary="Find a reward by id",
  *     tags={ "rewards"},
  *
  *     @SWG\Parameter(
  *         description="ID of reward to fetch",
  *         format="int64",
  *         in="path",
  *         name="id",
  *         required=true,
  *         type="integer"
  *     ),
  *
  *     @SWG\Response(
  *         response=200,
  *         description="Successful response",
  *         @SWG\Schema(ref="#/definitions/reward.extended")
  *     ),
  *     @SWG\Response(
  *         response=500,
  *         description="Unexpected error",
  *         @SWG\Schema(ref="#/definitions/error500")
  *     ),
  *     @SWG\Response(
  *         response=404,
  *         description="Not Found",
  *         @SWG\Schema(ref="#/definitions/error404")
  *     )
  * )
  */
 public function show($id)
 {
     return parent::show($id);
 }
Ejemplo n.º 2
0
 /**
  * @SWG\Get(
  *     path="users/{id}",
  *     description="Returns an user by id",
  *     summary="Find user by id",
  *     tags={ "user"},
  *
  *     @SWG\Parameter(
  *         description="ID of user to fetch",
  *         format="int64",
  *         in="path",
  *         name="id",
  *         required=true,
  *         type="integer"
  *     ),
  *
  *     @SWG\Response(
  *         response=200,
  *         description="Successful response",
  *         @SWG\Schema(ref="#/definitions/user.extended")
  *     ),
  *     @SWG\Response(
  *         response=500,
  *         description="Unexpected error",
  *         @SWG\Schema(ref="#/definitions/error500")
  *     ),
  *     @SWG\Response(
  *         response=404,
  *         description="Not Found",
  *         @SWG\Schema(ref="#/definitions/error404")
  *     )
  * )
  */
 public function show($id)
 {
     // Hacky variable to make the user transformer
     // to include the user profile
     $this->include_profile = true;
     return parent::show($id);
 }