Get all the URLs for every resource
346832
def all_resource_urls(query):
    '''  '''
    urls = []
    next = True
    while next:
        response = requests.get(query)
        json_data = json.loads(response.content)
        for resource in json_data['results']:
            urls.append(resource['url'])
        if bool(json_data['next']):
            query = json_data['next']
        else:
            next = False
    return urls
964853
def url_for(self, *args: str, **kwargs: str) -> URL:
        """"""
        return self._resource.url_for(*args, **kwargs)
594043
function getAll(appName, callback) {
    var url = format('/%s/apps/%s/domains/', deis.version, appName);
    commons.get(endpoint, callback);
  }
1261929
def all(page = 1, limit = 100, latest = true)
      opts = connection.version == 2 ? {:unseen => latest} : {:latest => latest}
      connection.get(resource_uri, {:query => {:limit => limit, :page => page}.merge(opts)})
    end
757915
def get_resources(url, resource_class, params={})
      get(url, params).map do |result|
        resource_class.from_hash(result, client: self)
      end
    end
1190386
def get_urls(self):
        
        urls = super(IPAdmin, self).get_urls()
        my_urls = patterns(
            '',
            url(r'^batch_process_ips/$', self.admin_site.admin_view(self.batch_process_ips_view), name='batch_process_ips_view')
        )
        return my_urls + urls
1151708
def all(self, res):
        ""
        B = get_backend()
        return B.get_objects(B.get_concrete(res))
373976
def url(self, version=None, **kwargs):
        """"""
        for url in self.urls(version):
            if [key for key in kwargs.keys() if not '{' + key + '}' in url]:
                continue

            return url.format(**kwargs)

        raise KeyError('URL that takes all provided parameters not found')
1125376
def url_for(resource, params = {}, options = {})
      Xhive.railtie_routes_url_helpers.send("#{resource}_url", params, options.merge(default_url_options))
    end
560510
def get_resource_url(self):
        

        name = self.__class__.resource_name
        url = self.__class__.rest_base_url()

        return "%s/%s" % (url, name)
272736
def get_urls(self, controllers=None, prefix_path=''):
        
        tag_match = lambda program: set(program.controllers) & set(controllers or [])
        urls = set()

        for key, value in self.manifest.items():

            path = "%s/%s" % (prefix_path, key)

            if path.endswith('/') and prefix_path:
                path = path[:-1]

            if hasattr(value, 'lower'):
                # is a string redirect
                urls.add(path)

            elif isinstance(value, Manifest):
                # is manifest
                pp = '' if path == '/' else path # for 'stacked' root programs.
                new_urls = value.get_urls(controllers=controllers, prefix_path=pp)
                urls.update(new_urls)

            elif isinstance(value, Program):
                # make a list so we can iterate through it in the next `if` block
                value = [value]

            if hasattr(value, 'append'):
                # defined is multiple programs, get the one for this controller tag.
                for program in value:
                    if not program.controllers or not controllers:
                        # no controllers defined on program. Always add.
                        # or no tags defined for this get_urls call. Always add.
                        urls.add(path)
                    elif tag_match(program):
                        urls.add(path)

        return urls
359364
def get_resources
      routes_doc = get_routes_doc
      resources_names = routes_doc.get_resources_names - resources_black_list

      resources_names.map do |resource|
        puts "Generating #{resource} documentation..." if trace?
        ResourceDoc.new( resource, routes_doc.get_actions_route_info( resource ) )
      end
    end
645985
def get_urls(self):
        
        parts = []
        seen = set()

        # Process item views in order
        for v in list(self._meta.item_views)+list(self._meta.action_views):
            if not v in seen:
                view, name = self.get_view_and_name(v)
                if view and name:
                    parts.append(self.get_url(name, view, v))
                seen.add(v)

        # Process everything else that we have not seen
        for v in set(self._views).difference(seen):
            # Get the url name
            view, name = self.get_view_and_name(v)
            if view and name:
                parts.append(self.get_url(name, view, v))

        return parts
173253
function extractUrlTemplates(resourceName) {
                    if (hasUrlTemplate(resourceName)) {
                        var indexOfSlash = resourceName.indexOf("/");
                        return [resourceName.substr(0, indexOfSlash), resourceName.substr(indexOfSlash, resourceName.length)];
                    }
                }
200946
public List<URL> getURLs() {
        final List<URL> resourceURLs = new ArrayList<>(this.size());
        for (final Resource resource : this) {
            resourceURLs.add(resource.getURL());
        }
        return resourceURLs;
    }
577018
def selected_urls(self):
        
        urls = []
        debug('gettings urls')
        for proxy_index in self.tree_view.selectedIndexes():
            finfo = self.tree_view.fileInfo(proxy_index)
            urls.append(finfo.canonicalFilePath())
        debug('selected urls %r' % [str(url) for url in urls])
        return urls
1164638
def get_urls(self):
        
        urls = super(PageAdmin, self).get_urls()
        my_urls = [
            url(r'^get_layout/$', self.admin_site.admin_view(self.get_layout_view))
        ]
        return my_urls + urls