/**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  *
  *   @SWG\Get(
  *     path="/categories/{id}",
  *     description="Detalhe de uma categoria",
  *     @SWG\Parameter(
  *          name="id",
  *          in="path",
  *          description="Id da categoria",
  *          required=true,
  *          type="integer"
  *      ),
  *     @SWG\Response(
  *          response=200,
  *          description="Detalhe da categoria",
  *          @SWG\Schema(ref="#/definitions/Category"),
  *     ),
  *     @SWG\Response(
  *         response=404,
  *         description="Categoria não encontrada.",
  *     ),
  *     security={
  *         {
  *             "api_oauth": {"read:categories"}
  *         }
  *     }
  * )
  *
  */
 public function show($id)
 {
     $categories = $this->categoryRepository->find($id);
     return \ResponseFractal::respondItem($categories, new CategoryTransformer());
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  *
  * @SWG\Get(
  *     path="/profile",
  *     description="Informações do seu perfil",
  *     operationId="api.profile.index",
  *     tags={"dashboard"},
  *     @SWG\Response(
  *          response=200,
  *          description="Lista dados do seu perfil",
  *          @SWG\Schema(ref="#/definitions/User"),
  *     ),
  *     @SWG\Response(
  *          response=400,
  *          description="Erro de requição, faltando token auth",
  *          @SWG\Schema(ref="#/definitions/Error_oAuth")
  *     ),
  *     @SWG\Response(
  *         response=401,
  *         description="Unauthorized action.",
  *     ),
  *     security={
  *         {
  *             "api_oauth": {"read:tasks"}
  *         }
  *     }
  * )
  *
  */
 public function index()
 {
     $user = User::find(\Authorizer::getResourceOwnerId());
     return \ResponseFractal::respondItem($user, new UserTransformer());
 }
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  *
  * *  @SWG\Get(
  *     path="/tasks/{id}",
  *     description="Exibi detalhe de uma unica tarefa",
  *     @SWG\Parameter(
  *          name="id",
  *          in="path",
  *          description="Id da tarefas",
  *          required=true,
  *          type="integer"
  *      ),
  *     @SWG\Response(
  *          response=200,
  *          description="Detalhe da tarefas",
  *          @SWG\Schema(@SWG\Items(ref="#/definitions/Task") ),
  *     ),
  *     security={
  *         {
  *             "api_oauth": {"oauth:tasks_read"}
  *         }
  *     }
  * )
  *
  */
 public function show($id)
 {
     $task = $this->taskRepository->find($id);
     return \ResponseFractal::respondItem($task, new TaskTransformer());
 }