public function run()
    {
        try {
            $response = $this->buildResponse();
        } catch (Error\Base $ex) {
            $response = $this->handleError($ex);
        }

        $this->serializer->serialize($response, $this);

        return $this;
    }
public function run()
    {
        try {
            $response = $this->buildResponse();
        } catch (Error\Base $ex) {
            $response = $this->handleError($ex);
        }

        $this->serializer->serialize($response, $this);

        return $this;
    }
public function run ( ) { try { $ response = $ this -> buildResponse ( ) ; } catch ( Error \ Base $ ex ) { $ response = $ this -> handleError ( $ ex ) ; } $ this -> serializer -> serialize ( $ response , $ this ) ; return $ this ; }
Runs the API route.

@return $this
Runs the API route .