public function getRecordAction(Request $request, $databox_id, $record_id)
    {
        try {
            $record = $this->findDataboxById($databox_id)->get_record($record_id);

            return Result::create($request, ['record' => $this->listRecord($request, $record)])->createResponse();
        } catch (NotFoundHttpException $e) {
            return Result::createError($request, 404, $this->app->trans('Record Not Found'))->createResponse();
        } catch (\Exception $e) {
            return $this->getBadRequestAction($request, $this->app->trans('An error occurred'));
        }
    }
public function getRecordAction(Request $request, $databox_id, $record_id)
    {
        try {
            $record = $this->findDataboxById($databox_id)->get_record($record_id);

            return Result::create($request, ['record' => $this->listRecord($request, $record)])->createResponse();
        } catch (NotFoundHttpException $e) {
            return Result::createError($request, 404, $this->app->trans('Record Not Found'))->createResponse();
        } catch (\Exception $e) {
            return $this->getBadRequestAction($request, $this->app->trans('An error occurred'));
        }
    }
public function getRecordAction ( Request $ request , $ databox_id , $ record_id ) { try { $ record = $ this -> findDataboxById ( $ databox_id ) -> get_record ( $ record_id ) ; return Result :: create ( $ request , [ 'record' => $ this -> listRecord ( $ request , $ record ) ] ) -> createResponse ( ) ; } catch ( NotFoundHttpException $ e ) { return Result :: createError ( $ request , 404 , $ this -> app -> trans ( 'Record Not Found' ) ) -> createResponse ( ) ; } catch ( \ Exception $ e ) { return $ this -> getBadRequestAction ( $ request , $ this -> app -> trans ( 'An error occurred' ) ) ; } }
Return detailed information about one record

@param  Request $request
@param  int     $databox_id
@param  int     $record_id

@return Response
Return detailed information about one record