Skip to content

Commit

Permalink
Merge pull request #157 from x-atlas-consortia/jas_application_contex…
Browse files Browse the repository at this point in the history
…t_case_insensitivity

Deprecated hs-ontology-api's copy of http_error_string.py. Refactored…
  • Loading branch information
yuanzhou authored Dec 12, 2024
2 parents 645d3c9 + 13234a3 commit 62c04ec
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 131 deletions.
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

0 comments on commit 62c04ec

Please sign in to comment.