Skip to content

Commit

Permalink
change endpoint function names to avoid import collisions #257
Browse files Browse the repository at this point in the history
- These functions had the same function names as the ones defined for DataGateway API
  • Loading branch information
MRichards99 committed Nov 2, 2021
1 parent b60f532 commit 63ba953
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions datagateway_api/src/resources/search_api/search_api_endpoints.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from flask_restful import Resource


# TODO - Might need kwargs on get_endpoint(), get_id_endpoint(), get_count_endpoint(),
# get_files_endpoint(), get_count_files_endpoint() for client handling?
def get_endpoint(name):
# TODO - Might need kwargs on get_search_endpoint(), get_single_endpoint(),
# get_number_count_endpoint(), get_files_endpoint(), get_number_count_files_endpoint()
# for client handling?
def get_search_endpoint(name):
"""
TODO - Add docstring
"""
Expand All @@ -30,7 +31,7 @@ def get(self):
return Endpoint


def get_id_endpoint(name):
def get_single_endpoint(name):
"""
TODO - Add docstring
"""
Expand All @@ -46,7 +47,7 @@ def get(self, pid):
return EndpointWithID


def get_count_endpoint(name):
def get_number_count_endpoint(name):
"""
TODO - Add docstring
"""
Expand Down Expand Up @@ -78,7 +79,7 @@ def get(self, pid):
return FilesEndpoint


def get_count_files_endpoint(name):
def get_number_count_files_endpoint(name):
"""
TODO - Add docstring
"""
Expand Down

0 comments on commit 63ba953

Please sign in to comment.