Exemplo n.º 1
0
def get_map(_id):
    """
    Return the metadata of a specific map
    """
    content = json.dumps(data.getMetaMap(_id))
    return Response(mimetype="application/json", status=200, response=content)
Exemplo n.º 2
0
    def get(self, _id):
        content = json.dumps(data.getMetaMap(_id))

        self.set_status(200)
        self.set_header('Content-Type', 'application/json')
        self.write(content)