hemlock_rest/hemlock_rest.py
def GET(self):
        """
        GETs the schemas of all data that is stored in Hemlock.

        :return: returns the fields in all schemas stored in Hemlock
        """
        # !! TODO placeholder
        true = True
        false = False
        null = None
        try:
            mapping = urllib2.urlopen("http://localhost:9200/_mapping").read()
            mapping = json.loads(mapping)
            return sorted(mapping["hemlock"]["couchbaseDocument"]["properties"]["doc"]["properties"].keys())
        except:
            return ""

        GETs the schemas of all data that is stored in Hemlock.

        :return: returns the fields in all schemas stored in Hemlock
        
GETs the schemas of all data that is stored in Hemlock.
GETs the schemas of all data that is stored in Hemlock .
def GET(self):
        true = True
        false = False
        null = None
        try:
            mapping = urllib2.urlopen("http://localhost:9200/_mapping").read()
            mapping = json.loads(mapping)
            return sorted(mapping["hemlock"]["couchbaseDocument"]["properties"]["doc"]["properties"].keys())
        except:
            return ""
def GET ( self ) : true = True false = False null = None try : mapping = urllib2 . urlopen ( "http://localhost:9200/_mapping" ) . read ( ) mapping = json . loads ( mapping ) return sorted ( mapping [ "hemlock" ] [ "couchbaseDocument" ] [ "properties" ] [ "doc" ] [ "properties" ] . keys ( ) ) except : return ""
GETs the schemas of all data that is stored in Hemlock.
GETs the schemas of all data that is stored in Hemlock .
"""
        GETs the schemas of all data that is stored in Hemlock.

        :return: returns the fields in all schemas stored in Hemlock
        """ # !! TODO placeholder
returns the fields in all schemas stored in Hemlock
returns the fields in all schemas stored in Hemlock
self