Commit 3b894344 authored by mouadh's avatar mouadh

remove useless service

parent d33c512e
...@@ -12,20 +12,15 @@ class OlapyService(ServiceBase): ...@@ -12,20 +12,15 @@ class OlapyService(ServiceBase):
executer = MdxEngine('sales') executer = MdxEngine('sales')
# curl "http://localhost:8000/get_cubes_names"
@rpc(_returns=Iterable(Unicode))
def get_cubes_names(ctx):
return MdxEngine.get_cubes_names()
# curl "http://localhost:8000/get_star_schema" # curl "http://localhost:8000/get_star_schema"
@rpc(_returns=Unicode) @rpc(_returns=Unicode)
def get_star_schema(ctx): def get_star_schema(ctx):
return OlapyService.executer.load_star_schema_dataframe.to_json() return OlapyService.executer.load_star_schema_dataframe.to_json()
# curl "http://localhost:8000/get_cubes_names" # curl "http://localhost:8000/get_cubes_names"
@rpc(_returns=Unicode) @rpc(_returns=Unicode)
def get_cubes_names(ctx): def get_all_tables(ctx):
return { return {
table_name: table_dataframe.to_json() table_name: table_dataframe.to_json()
for table_name, table_dataframe in for table_name, table_dataframe in
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment