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)
def get(self, _id): content = json.dumps(data.getMetaMap(_id)) self.set_status(200) self.set_header('Content-Type', 'application/json') self.write(content)