/**
  * @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);
 }
Example #2
0
 /** 
  * @SWG\Get(
  *     path="users",
  *     summary="Returns all users",
  *     description="Returns all users",
  *     tags={ "user"},
  *     
  *     @SWG\Parameter(
  *         ref="#/parameters/per_page"
  *     ),
  *     @SWG\Parameter(
  *         ref="#/parameters/page"
  *     ),
  *     @SWG\Parameter(
  *         ref="#/parameters/sort"
  *     ), 
  *     
  *     @SWG\Response(
  *         response=200,
  *         description="Successful response",
  *         @SWG\Schema(ref="#/definitions/user", type="array")
  *     ),
  *     @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 index()
 {
     return parent::index();
 }