code: def _load_resources(self):
          
  
          for resource in self.RESOURCES:
              if isinstance(resource, goldman.ModelsResource):
                  route = '/%s' % resource.rtype
              elif isinstance(resource, goldman.ModelResource):
                  route = '/%s/{rid}' % resource.rtype
              elif isinstance(resource, goldman.RelatedResource):
                  route = '/%s/{rid}/{related}' % resource.rtype
              else:
                  raise TypeError('unsupported resource type')
  
              self.add_route(*(route, resource))
docs: Load all the native goldman resources.
  
          The route or API endpoint will be automatically determined
          based on the resource object instance passed in.
  
          INFO: Only our Model based resources are supported when
                auto-generating API endpoints.