addons14/base_rest/controllers/api_docs.py
def _get_api_urls(self):
        """
        This method lookup into the dictionary of registered REST service
        for the current database to built the list of available REST API
        :return:
        """
        services_registry = _rest_services_databases.get(request.env.cr.dbname, {})
        api_urls = []
        for rest_root_path, spec in list(services_registry.items()):
            collection_path = rest_root_path[1:-1]  # remove '/'
            collection_name = spec["collection_name"]
            for service in self._get_service_in_collection(collection_name):
                api_urls.append(
                    {
                        "name": "{}: {}".format(collection_path, service._usage),
                        "url": "/api-docs/%s/%s.json"
                        % (collection_path, service._usage),
                    }
                )
        api_urls = sorted(api_urls, key=lambda k: k["name"])
        return api_urls

        This method lookup into the dictionary of registered REST service
        for the current database to built the list of available REST API
        :return:
        
This method lookup into the dictionary of registered REST service
for the current database to built the list of available REST API
This method lookup into the dictionary of registered REST service for the current database to built the list of available REST API
def _get_api_urls(self):
        services_registry = _rest_services_databases.get(request.env.cr.dbname, {})
        api_urls = []
        for rest_root_path, spec in list(services_registry.items()):
            collection_path = rest_root_path[1:-1]  
            collection_name = spec["collection_name"]
            for service in self._get_service_in_collection(collection_name):
                api_urls.append(
                    {
                        "name": "{}: {}".format(collection_path, service._usage),
                        "url": "/api-docs/%s/%s.json"
                        % (collection_path, service._usage),
                    }
                )
        api_urls = sorted(api_urls, key=lambda k: k["name"])
        return api_urls
def _get_api_urls ( self ) : services_registry = _rest_services_databases . get ( request . env . cr . dbname , { } ) api_urls = [ ] for rest_root_path , spec in list ( services_registry . items ( ) ) : collection_path = rest_root_path [ 1 : - 1 ] collection_name = spec [ "collection_name" ] for service in self . _get_service_in_collection ( collection_name ) : api_urls . append ( { "name" : "{}: {}" . format ( collection_path , service . _usage ) , "url" : "/api-docs/%s/%s.json" % ( collection_path , service . _usage ) , } ) api_urls = sorted ( api_urls , key = lambda k : k [ "name" ] ) return api_urls
This method lookup into the dictionary of registered REST service
for the current database to built the list of available REST API
This method lookup into the dictionary of registered REST service for the current database to built the list of available REST API
"""
        This method lookup into the dictionary of registered REST service
        for the current database to built the list of available REST API
        :return:
        """ # remove '/'
None
self