-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into implement-limit-and-skip-filters
- Loading branch information
Showing
43 changed files
with
397 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,38 @@ | ||
""" | ||
Code to store helper functions to deal with the endpoints, like for DataGateway API | ||
""" | ||
import logging | ||
|
||
from datagateway_api.src.search_api.session_handler import ( | ||
client_manager, | ||
SessionHandler, | ||
) | ||
|
||
|
||
log = logging.getLogger() | ||
|
||
|
||
# TODO - Make filters mandatory, if no filters are in a request an empty list will be | ||
# given to these functions | ||
@client_manager | ||
def get_search(entity_name, filters=None): | ||
# TODO - `getApiVersion()` used as a placeholder for testing client handling | ||
# Replace with endpoint functionality when implementing the endpoints | ||
return SessionHandler.client.getApiVersion() | ||
|
||
|
||
@client_manager | ||
def get_with_id(entity_name, id_, filters=None): | ||
pass | ||
|
||
|
||
@client_manager | ||
def get_count(entity_name, filters=None): | ||
pass | ||
|
||
|
||
@client_manager | ||
def get_files(entity_name, filters=None): | ||
pass | ||
|
||
|
||
@client_manager | ||
def get_files_count(entity_name, id_, filters=None): | ||
pass |
Oops, something went wrong.