Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
olapy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
olapy
Commits
3b894344
Commit
3b894344
authored
May 10, 2017
by
mouadh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove useless service
parent
d33c512e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
olapy/rest_services.py
olapy/rest_services.py
+1
-6
No files found.
olapy/rest_services.py
View file @
3b894344
...
@@ -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_nam
es
(
ctx
):
def
get_
all_tabl
es
(
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment