def get_schema():
	metaCollection = db['metaschema']
	all_schemas = metaCollection.find()
	serialized_schemas = {
		'schemas': [utils.serialize_meta_schema(s) for s in all_schemas]
	}
	return serialized_schemas
Beispiel #2
0
def get_schema():
	all_schemas = MetaSchema.find()
	serialized_schemas = {
		'schemas': [utils.serialize_meta_schema(s) for s in all_schemas]
	}
	return serialized_schemas
Beispiel #3
0
def get_schema():
    all_schemas = MetaSchema.find()
    serialized_schemas = {
        'schemas': [utils.serialize_meta_schema(s) for s in all_schemas]
    }
    return serialized_schemas