src/Services/JsonApiService.php
public function register($apiName, $options = [], Closure $routes = null): ApiRegistration
    {
        /** @var JsonApiRegistrar $registrar */
        $registrar = $this->container->make('json-api.registrar');

        return $registrar->api($apiName, $options, $routes);
    }
public function register($apiName, $options = [], Closure $routes = null): ApiRegistration
    {
        /** @var JsonApiRegistrar $registrar */
        $registrar = $this->container->make('json-api.registrar');

        return $registrar->api($apiName, $options, $routes);
    }
public function register ( $ apiName , $ options = [ ] , Closure $ routes = null ) : ApiRegistration { /** @var JsonApiRegistrar $registrar */ $ registrar = $ this -> container -> make ( 'json-api.registrar' ) ; return $ registrar -> api ( $ apiName , $ options , $ routes ) ; }
Register the routes for an API.

@param $apiName
@param array|Closure $options
@param Closure|null $routes
@return ApiRegistration
Register the routes for an API .