Beispiel #1
0
    def object_types():
        """
        Show all available 'entry points' available for searching. An entry
        point defines a uri that provides unfiltered access to all elements
        of the entry point type.

        :return: list of entry points by name
        :rtype: list(str)
        """
        # Return all elements from the root of the API nested under elements URI
        # element_uri = str(
        types = [element.rel for element in entry_point()]
        types.extend(list(CONTEXTS))
        return types
Beispiel #2
0
    def object_types():
        """
        Show all available 'entry points' available for searching. An entry
        point defines a uri that provides unfiltered access to all elements
        of the entry point type.

        :return: list of entry points by name
        :rtype: list(str)
        """
        # Return all elements from the root of the API nested under elements URI
        #element_uri = str(
        types = [element.rel
                 for element in entry_point()]
        types.extend(list(CONTEXTS))
        return types
Beispiel #3
0
 def __init__(self, **params):
     super(Search, self).__init__(**params)
     self._resource = entry_point()
Beispiel #4
0
 def __init__(self, **params):
     super(Search, self).__init__(**params)
     self._resource = entry_point()