code: 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);
      }
docs: Register the routes for an API.
  
  @param $apiName
  @param array|Closure $options
  @param Closure|null $routes
  @return ApiRegistration