Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated hs-ontology-api's copy of http_error_string.py. Refactored… #157

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# JAS December 2023
from flask import Blueprint, jsonify, current_app, request, make_response
from hs_ontology_api.utils.neo4j_logic import field_assays_get_logic
from hs_ontology_api.utils.http_error_string import get_404_error_string, validate_query_parameter_names
from ubkg_api.utils.http_error_string import get_404_error_string, validate_query_parameter_names

field_assays_blueprint = Blueprint('field-assays', __name__, url_prefix='/field-assays')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# JAS December 2023
from flask import Blueprint, jsonify, current_app, request, make_response
from hs_ontology_api.utils.neo4j_logic import field_descriptions_get_logic
from hs_ontology_api.utils.http_error_string import get_404_error_string, validate_query_parameter_names, \
from ubkg_api.utils.http_error_string import get_404_error_string, validate_query_parameter_names, \
validate_parameter_value_in_enum

field_descriptions_blueprint = Blueprint('field-descriptions', __name__, url_prefix='/field-descriptions')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# JAS January 2024
from flask import Blueprint, jsonify, current_app, request, make_response
from hs_ontology_api.utils.neo4j_logic import field_entities_get_logic
from hs_ontology_api.utils.http_error_string import get_404_error_string,validate_query_parameter_names, \
from ubkg_api.utils.http_error_string import get_404_error_string,validate_query_parameter_names, \
validate_parameter_value_in_enum


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# JAS January 2024
from flask import Blueprint, jsonify, current_app, request, make_response
from hs_ontology_api.utils.neo4j_logic import field_schemas_get_logic
from hs_ontology_api.utils.http_error_string import get_404_error_string, validate_query_parameter_names, \
from ubkg_api.utils.http_error_string import get_404_error_string, validate_query_parameter_names, \
validate_parameter_value_in_enum

field_schemas_blueprint = Blueprint('field-schemas', __name__, url_prefix='/field-schemas')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# JAS December 2023
from flask import Blueprint, jsonify, current_app, request, make_response
from hs_ontology_api.utils.neo4j_logic import field_types_get_logic
from hs_ontology_api.utils.http_error_string import get_404_error_string, validate_query_parameter_names, \
from ubkg_api.utils.http_error_string import get_404_error_string, validate_query_parameter_names, \
validate_parameter_value_in_enum


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# JAS January 2024
from flask import Blueprint, jsonify, current_app, request, make_response
from hs_ontology_api.utils.neo4j_logic import field_types_info_get_logic
from hs_ontology_api.utils.http_error_string import get_404_error_string, validate_query_parameter_names, \
from ubkg_api.utils.http_error_string import get_404_error_string, validate_query_parameter_names, \
validate_parameter_value_in_enum

field_types_info_blueprint = Blueprint('field-types-info', __name__, url_prefix='/field-types-info')
Expand Down
123 changes: 0 additions & 123 deletions src/hs_ontology_api/utils/http_error_string.py

This file was deleted.

2 changes: 0 additions & 2 deletions test/test_api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,6 @@ echo
echo | tee -a test.out
echo | tee -a test.out

exit;

echo "TESTS FOR: dataset-types GET" | tee -a test.out
echo "SIGNATURE: /dataset-types?application_context" | tee -a test.out
echo | tee -a test.out
Expand Down
Loading