api-foundry-query-engine 0.8.58__tar.gz → 0.8.59__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/PKG-INFO +1 -1
- api_foundry_query_engine-0.8.59/api_foundry_query_engine/__init__.py +1 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/adapters/gateway_adapter.py +5 -3
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/utils/claims_check.py +17 -7
- api_foundry_query_engine-0.8.58/api_foundry_query_engine/__init__.py +0 -1
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/.gitignore +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/LICENSE +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/.pre-commit-config.yaml +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/adapters/adapter.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/adapters/case_change_adapter.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/adapters/security_adapter.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/connectors/connection.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/connectors/connection_factory.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/connectors/oracle_connector.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/connectors/postgres_connection.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/dao/batch_operation_handler.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/dao/dao.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/dao/operation_dao.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/dao/sql_custom_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/dao/sql_delete_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/dao/sql_insert_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/dao/sql_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/dao/sql_restore_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/dao/sql_select_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/dao/sql_subselect_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/dao/sql_update_query_handler.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/lambda_handler.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/operation.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/services/service.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/services/transactional_service.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/utils/api_model.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/utils/app_exception.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/utils/dependency_resolver.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/utils/logger.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/utils/reference_resolver.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/api_foundry_query_engine/utils/token_decoder.py +0 -0
- {api_foundry_query_engine-0.8.58 → api_foundry_query_engine-0.8.59}/pyproject.toml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: api-foundry-query-engine
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.59
|
|
4
4
|
Summary: The AWS lambda service handler use by the `api_foundry` project is a powerful tool designed to automate the deployment of REST APIs on AWS using Lambda services to access and interact with relational databases (RDBMS). This project leverages the OpenAPI specification to define and manage the APIs
|
|
5
5
|
Project-URL: Documentation, https://github.com/DanRepik/api-foundry
|
|
6
6
|
Project-URL: Source, https://github.com/DanRepik/api-foundry
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.8.59"
|
|
@@ -39,12 +39,12 @@ class GatewayAdapter(Adapter):
|
|
|
39
39
|
- tuple: Tuple containing data, query and metadata parameters.
|
|
40
40
|
"""
|
|
41
41
|
resource = event.get("resource")
|
|
42
|
-
if resource
|
|
42
|
+
if resource:
|
|
43
43
|
parts = [p for p in resource.split("/") if p] # Remove empty strings
|
|
44
44
|
# Skip common API prefixes like "api", "v1", "v2", etc.
|
|
45
45
|
api_prefixes = {"api", "v1", "v2", "v3"}
|
|
46
|
-
|
|
47
|
-
entity =
|
|
46
|
+
literal_parts = [p for p in parts if p not in api_prefixes and not p.startswith("{")]
|
|
47
|
+
entity = "_".join(literal_parts) if literal_parts else None
|
|
48
48
|
else:
|
|
49
49
|
entity = None
|
|
50
50
|
|
|
@@ -107,6 +107,8 @@ class GatewayAdapter(Adapter):
|
|
|
107
107
|
if query_string_parameters is not None:
|
|
108
108
|
event_params.update(query_string_parameters)
|
|
109
109
|
query_params, metadata_params = self.split_params(event_params)
|
|
110
|
+
log.info("Unmarshalled query parameters: %s", query_params)
|
|
111
|
+
log.info("Unmarshalled metadata parameters: %s", metadata_params)
|
|
110
112
|
|
|
111
113
|
store_params = {}
|
|
112
114
|
body = event.get("body")
|
|
@@ -403,17 +403,27 @@ def _extract_entity_from_path(event: Dict[str, Any]) -> Optional[str]:
|
|
|
403
403
|
# Remove leading slash and split by slash
|
|
404
404
|
path_parts = path.lstrip("/").split("/")
|
|
405
405
|
|
|
406
|
-
# Find
|
|
406
|
+
# Find literal path parts (ignoring params and common prefixes)
|
|
407
407
|
# For paths like "/comment/123" or "/comment/123/version/1"
|
|
408
|
-
# Skip common API prefixes like "api", "v1", etc.
|
|
409
408
|
api_prefixes = {"api", "v1", "v2", "v3"}
|
|
409
|
+
literal_parts = []
|
|
410
410
|
for part in path_parts:
|
|
411
|
-
if part
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
411
|
+
if not part or part.startswith("{"):
|
|
412
|
+
continue
|
|
413
|
+
if part in api_prefixes:
|
|
414
|
+
continue
|
|
415
|
+
# Skip numeric IDs and known path keywords
|
|
416
|
+
if part.isdigit() or part in {"version", "batch"}:
|
|
417
|
+
continue
|
|
418
|
+
literal_parts.append(part)
|
|
419
|
+
|
|
420
|
+
if not literal_parts:
|
|
421
|
+
return None
|
|
422
|
+
|
|
423
|
+
if len(literal_parts) == 1:
|
|
424
|
+
return literal_parts[0]
|
|
415
425
|
|
|
416
|
-
return
|
|
426
|
+
return "_".join(literal_parts)
|
|
417
427
|
|
|
418
428
|
|
|
419
429
|
def _scope_matches(user_scopes: list, required_scope: str, operation: str, entity: str) -> bool:
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.8.58"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|