From d45205d39bd5cd269b37ee0897eea9e986347b5c Mon Sep 17 00:00:00 2001 From: Pelayo Torres Date: Wed, 18 Dec 2024 12:50:06 +0100 Subject: [PATCH 1/2] fix apiStatus in Discover service --- .../service_apis/core/discoveredapis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/TS29222_CAPIF_Discover_Service_API/service_apis/core/discoveredapis.py b/services/TS29222_CAPIF_Discover_Service_API/service_apis/core/discoveredapis.py index 8ac986a..58c88c8 100644 --- a/services/TS29222_CAPIF_Discover_Service_API/service_apis/core/discoveredapis.py +++ b/services/TS29222_CAPIF_Discover_Service_API/service_apis/core/discoveredapis.py @@ -12,7 +12,7 @@ def filter_fields(filtered_apis): key_filter = [ "api_name", "api_id", "aef_profiles", "description", "supported_features", "shareable_info", "service_api_category", - "api_supp_feats", "pub_api_path", "ccf_id" + "api_supp_feats", "pub_api_path", "ccf_id", "api_status" ] field_filtered_api = {} for key in filtered_apis.keys(): -- GitLab From b2451c07c39f8a445d400dcbf832c59b0c0a6508 Mon Sep 17 00:00:00 2001 From: Pelayo Torres Date: Wed, 18 Dec 2024 13:56:49 +0100 Subject: [PATCH 2/2] Fix apiStatus in publish --- .../published_apis/core/serviceapidescriptions.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/services/TS29222_CAPIF_Publish_Service_API/published_apis/core/serviceapidescriptions.py b/services/TS29222_CAPIF_Publish_Service_API/published_apis/core/serviceapidescriptions.py index 3e42703..a41a5d3 100644 --- a/services/TS29222_CAPIF_Publish_Service_API/published_apis/core/serviceapidescriptions.py +++ b/services/TS29222_CAPIF_Publish_Service_API/published_apis/core/serviceapidescriptions.py @@ -70,7 +70,8 @@ class PublishServiceOperations(Resource): "service_api_category": 1, "api_supp_feats": 1, "pub_api_path": 1, - "ccf_id": 1}) + "ccf_id": 1, + "api_status": 1}) current_app.logger.debug(service) if service is None: current_app.logger.error("Not found services for this apf id") @@ -166,7 +167,8 @@ class PublishServiceOperations(Resource): "service_api_category": 1, "api_supp_feats": 1, "pub_api_path": 1, - "ccf_id": 1}) + "ccf_id": 1, + "api_status": 1}) if service_api is None: current_app.logger.error(service_api_not_found_message) return not_found_error( @@ -250,7 +252,8 @@ class PublishServiceOperations(Resource): "service_api_category": 1, "api_supp_feats": 1, "pub_api_path": 1, - "ccf_id": 1}) + "ccf_id": 1, + "api_status": 1}) if serviceapidescription_old is None: current_app.logger.error(service_api_not_found_message) return not_found_error(detail="Service API not existing", cause="Service API id not found") @@ -271,7 +274,8 @@ class PublishServiceOperations(Resource): "service_api_category": 1, "api_supp_feats": 1, "pub_api_path": 1, - "ccf_id": 1}, + "ccf_id": 1, + "api_status": 1}, return_document=ReturnDocument.AFTER, upsert=False) result = clean_empty(result) -- GitLab