From b1e3ceab53546582b664c79c8d6da1dd52779603 Mon Sep 17 00:00:00 2001 From: JFrgs Date: Thu, 4 May 2023 13:45:07 +0300 Subject: [PATCH] revert changes in service description files --- .../service_as_session_with_qos.json | 144 ++++++++++-------- .../capif_files/service_monitoring_event.json | 28 +++- 2 files changed, 98 insertions(+), 74 deletions(-) diff --git a/backend/app/app/core/capif_files/service_as_session_with_qos.json b/backend/app/app/core/capif_files/service_as_session_with_qos.json index fac360f1..6f4640db 100644 --- a/backend/app/app/core/capif_files/service_as_session_with_qos.json +++ b/backend/app/app/core/capif_files/service_as_session_with_qos.json @@ -1,68 +1,80 @@ { - "apiName": "/nef/api/v1/3gpp-as-session-with-qos/", - "aefProfiles": [ - { - "aefId": "string", - "versions": [ - { - "apiVersion": "v1", - "expiry": "2100-11-30T10:32:02.004Z", - "resources": [ - { - "resourceName": "QOS_SUBSCRIPTIONS", - "commType": "SUBSCRIBE_NOTIFY", - "uri": "/scsAsId001/subscriptions", - "custOpName": "http_post", - "operations": ["GET","POST"], - "description": "Endpoint to manage monitoring subscriptions" - }, - { - "resourceName": "QOS_SUBSCRIPTION_SINGLE", - "commType": "SUBSCRIBE_NOTIFY", - "uri": "/scsAsId001/subscriptions/subscriptionId001", - "custOpName": "http_get", - "operations": ["GET","PUT","DELETE"], - "description": "Endpoint to manage single subscription" - } - ], - "custOperations": [ - { - "commType": "REQUEST_RESPONSE", - "custOpName": "string", - "operations": [ - "POST" - ], - "description": "string" - } - ] - } - ], - "protocol": "HTTP_1_1", - "dataFormat": "JSON", - "securityMethods": ["OAUTH", "PSK"], - "interfaceDescriptions": [ - { - "ipv4Addr": "127.0.0.1", - "port": 8888, - "securityMethods": ["OAUTH"] - } - ] - } - ], - "description": "API of dummy netapp to test", - "supportedFeatures": "fffff", - "shareableInfo": { - "isShareable": true, - "capifProvDoms": [ - "string" + "apiName": "/nef/api/v1/3gpp-as-session-with-qos/", + "aefProfiles": [ + { + "aefId": "string", + "versions": [ + { + "apiVersion": "v1", + "expiry": "2100-11-30T10:32:02.004Z", + "resources": [ + { + "resourceName": "QOS_SUBSCRIPTIONS", + "commType": "SUBSCRIBE_NOTIFY", + "uri": "/{scsAsId}/subscriptions", + "custOpName": "http_post", + "operations": [ + "GET", + "POST" + ], + "description": "Endpoint to manage monitoring subscriptions" + }, + { + "resourceName": "QOS_SUBSCRIPTION_SINGLE", + "commType": "SUBSCRIBE_NOTIFY", + "uri": "/{scsAsId}/subscriptions/{subscriptionId}", + "custOpName": "http_get", + "operations": [ + "GET", + "PUT", + "DELETE" + ], + "description": "Endpoint to manage single subscription" + } + ], + "custOperations": [ + { + "commType": "REQUEST_RESPONSE", + "custOpName": "string", + "operations": [ + "POST" + ], + "description": "string" + } + ] + } + ], + "protocol": "HTTP_1_1", + "dataFormat": "JSON", + "securityMethods": [ + "OAUTH", + "PSK" + ], + "interfaceDescriptions": [ + { + "ipv4Addr": "127.0.0.1", + "port": 8090, + "securityMethods": [ + "OAUTH" + ] + } ] - }, - "serviceAPICategory": "string", - "apiSuppFeats": "fffff", - "pubApiPath": { - "ccfIds": [ - "string" - ] - }, - "ccfId": "string" - } \ No newline at end of file + } + ], + "description": "API of dummy netapp to test", + "supportedFeatures": "fffff", + "shareableInfo": { + "isShareable": true, + "capifProvDoms": [ + "string" + ] + }, + "serviceAPICategory": "string", + "apiSuppFeats": "fffff", + "pubApiPath": { + "ccfIds": [ + "string" + ] + }, + "ccfId": "string" +} \ No newline at end of file diff --git a/backend/app/app/core/capif_files/service_monitoring_event.json b/backend/app/app/core/capif_files/service_monitoring_event.json index 2524925d..12cd82f3 100644 --- a/backend/app/app/core/capif_files/service_monitoring_event.json +++ b/backend/app/app/core/capif_files/service_monitoring_event.json @@ -11,17 +11,24 @@ { "resourceName": "MONITORING_SUBSCRIPTIONS", "commType": "SUBSCRIBE_NOTIFY", - "uri": "/scsAsId001/subscriptions", + "uri": "/{scsAsId}/subscriptions", "custOpName": "http_post", - "operations": ["GET","POST"], + "operations": [ + "GET", + "POST" + ], "description": "Endpoint to manage monitoring subscriptions" }, { "resourceName": "MONITORING_SUBSCRIPTION_SINGLE", "commType": "SUBSCRIBE_NOTIFY", - "uri": "/scsAsId001/subscriptions/subscriptionId001", + "uri": "/{scsAsId}/subscriptions/{subscriptionId}", "custOpName": "http_get", - "operations": ["GET","PUT","DELETE"], + "operations": [ + "GET", + "PUT", + "DELETE" + ], "description": "Endpoint to manage single subscription" } ], @@ -39,12 +46,17 @@ ], "protocol": "HTTP_1_1", "dataFormat": "JSON", - "securityMethods": ["OAUTH", "PSK"], + "securityMethods": [ + "OAUTH", + "PSK" + ], "interfaceDescriptions": [ { "ipv4Addr": "127.0.0.1", - "port": 8888, - "securityMethods": ["OAUTH"] + "port": 8090, + "securityMethods": [ + "OAUTH" + ] } ] } @@ -65,4 +77,4 @@ ] }, "ccfId": "string" -} +} \ No newline at end of file