code: protected function bindApi(string $namespace, string $host): Api
      {
          /** @var Repository $repository */
          $repository = $this->container->make(Repository::class);
  
          $api = $repository->createApi($namespace, $host);
          $this->container->instance(Api::class, $api);
          $this->container->alias(Api::class, 'json-api.inbound');
  
          return $api;
      }
docs: Build the API instance and bind it into the container.
  
  @param $namespace
  @param $host
  @return Api