-
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 pull request #294 from ral-facilities/feature/session-handling-…
…#258 Search API Session/Client Handling
- Loading branch information
Showing
41 changed files
with
390 additions
and
263 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
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.