Skip to content

Commit

Permalink
renamed query string endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogball committed Sep 26, 2017
1 parent 7fa4137 commit a1a0428
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2318,7 +2318,7 @@ def sqllab(self):

@api
@has_access_api
@expose("/slice/<slice_id>/query/")
@expose("/slice_query/<slice_id>/")
def sliceQuery(self, slice_id):
"""
This method exposes an API endpoint to
Expand Down
2 changes: 1 addition & 1 deletion tests/core_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ def test_slice_query_endpoint(self):
# API endpoint for query string
self.login(username="admin")
slc = self.get_slice("Girls", db.session)
resp = self.get_resp('/superset/slice/{}/query/'.format(slc.id))
resp = self.get_resp('/superset/slice_query/{}/'.format(slc.id))
assert 'query' in resp
assert 'language' in resp
self.logout();
Expand Down

0 comments on commit a1a0428

Please # to comment.