From: saul.gill Date: Mon, 7 Apr 2025 11:04:22 +0000 (+0100) Subject: Remove requestBody from V3 keepalive X-Git-Tag: 2.1.0~7 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=ae687a0452279671b5efdccabb42034c7bdeefe8;p=ccsdk%2Foran.git Remove requestBody from V3 keepalive Issue-ID: CCSDK-4111 Change-Id: I47a228a5ac3ea9bf2656dba2b91a796466ab7cce Signed-off-by: saul.gill --- diff --git a/a1-policy-management/api/offeredapis/openapitoolgen/offeredapis/pms-api/v3/index.html b/a1-policy-management/api/offeredapis/openapitoolgen/offeredapis/pms-api/v3/index.html index a9c59bf5..69b5ce4f 100644 --- a/a1-policy-management/api/offeredapis/openapitoolgen/offeredapis/pms-api/v3/index.html +++ b/a1-policy-management/api/offeredapis/openapitoolgen/offeredapis/pms-api/v3/index.html @@ -14335,9 +14335,7 @@ The identity of the registered service
curl -X PUT \
  -H "Accept: application/json,application/problem+json" \
- -H "Content-Type: application/json" \
- "https://example.com/a1-policy-management/v1/services/{serviceId}/keepalive" \
- -d ''
+ "https://example.com/a1-policy-management/v1/services/{serviceId}/keepalive"
 
@@ -14356,10 +14354,9 @@ public class ServiceRegistryAndSupervisionApiExample { ServiceRegistryAndSupervisionApi apiInstance = new ServiceRegistryAndSupervisionApi(); String serviceId = serviceId_example; // String | String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. - String body = body_example; // String | try { - Object result = apiInstance.keepAliveService(serviceId, accept, body); + Object result = apiInstance.keepAliveService(serviceId, accept); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ServiceRegistryAndSupervisionApi#keepAliveService"); @@ -14377,10 +14374,9 @@ final api_instance = DefaultApi(); final String serviceId = new String(); // String | final String accept = new String(); // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. -final String body = new String(); // String | try { - final result = await api_instance.keepAliveService(serviceId, accept, body); + final result = await api_instance.keepAliveService(serviceId, accept); print(result); } catch (e) { print('Exception when calling DefaultApi->keepAliveService: $e\n'); @@ -14397,10 +14393,9 @@ public class ServiceRegistryAndSupervisionApiExample { ServiceRegistryAndSupervisionApi apiInstance = new ServiceRegistryAndSupervisionApi(); String serviceId = serviceId_example; // String | String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. - String body = body_example; // String | try { - Object result = apiInstance.keepAliveService(serviceId, accept, body); + Object result = apiInstance.keepAliveService(serviceId, accept); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ServiceRegistryAndSupervisionApi#keepAliveService"); @@ -14420,12 +14415,10 @@ public class ServiceRegistryAndSupervisionApiExample { ServiceRegistryAndSupervisionApi *apiInstance = [[ServiceRegistryAndSupervisionApi alloc] init]; String *serviceId = serviceId_example; // (default to null) String *accept = application/json; // Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null) -String *body = body_example; // (optional) // Heartbeat message from a service (keepAliveService) [apiInstance keepAliveServiceWith:serviceId accept:accept - body:body completionHandler: ^(Object output, NSError* error) { if (output) { NSLog(@"%@", output); @@ -14444,8 +14437,7 @@ String *body = body_example; // (optional) var api = new OnapCcsdkA1PolicyManagementApi.ServiceRegistryAndSupervisionApi() var serviceId = serviceId_example; // {String} var opts = { - 'accept': application/json, // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. - 'body': body_example // {String} + 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. }; var callback = function(error, data, response) { @@ -14480,11 +14472,10 @@ namespace Example var apiInstance = new ServiceRegistryAndSupervisionApi(); var serviceId = serviceId_example; // String | (default to null) var accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null) - var body = body_example; // String | (optional) try { // Heartbeat message from a service (keepAliveService) - Object result = apiInstance.keepAliveService(serviceId, accept, body); + Object result = apiInstance.keepAliveService(serviceId, accept); Debug.WriteLine(result); } catch (Exception e) { Debug.Print("Exception when calling ServiceRegistryAndSupervisionApi.keepAliveService: " + e.Message ); @@ -14503,10 +14494,9 @@ require_once(__DIR__ . '/vendor/autoload.php'); $api_instance = new OpenAPITools\Client\Api\ServiceRegistryAndSupervisionApi(); $serviceId = serviceId_example; // String | $accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. -$body = body_example; // String | try { - $result = $api_instance->keepAliveService($serviceId, $accept, $body); + $result = $api_instance->keepAliveService($serviceId, $accept); print_r($result); } catch (Exception $e) { echo 'Exception when calling ServiceRegistryAndSupervisionApi->keepAliveService: ', $e->getMessage(), PHP_EOL; @@ -14523,10 +14513,9 @@ use WWW::OPenAPIClient::ServiceRegistryAndSupervisionApi; my $api_instance = WWW::OPenAPIClient::ServiceRegistryAndSupervisionApi->new(); my $serviceId = serviceId_example; # String | my $accept = application/json; # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. -my $body = WWW::OPenAPIClient::Object::String->new(); # String | eval { - my $result = $api_instance->keepAliveService(serviceId => $serviceId, accept => $accept, body => $body); + my $result = $api_instance->keepAliveService(serviceId => $serviceId, accept => $accept); print Dumper($result); }; if ($@) { @@ -14545,11 +14534,10 @@ from pprint import pprint api_instance = openapi_client.ServiceRegistryAndSupervisionApi() serviceId = serviceId_example # String | (default to null) accept = application/json # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null) -body = body_example # String | (optional) try: # Heartbeat message from a service (keepAliveService) - api_response = api_instance.keep_alive_service(serviceId, accept=accept, body=body) + api_response = api_instance.keep_alive_service(serviceId, accept=accept) pprint(api_response) except ApiException as e: print("Exception when calling ServiceRegistryAndSupervisionApi->keepAliveService: %s\n" % e) @@ -14561,10 +14549,9 @@ except ApiException as e: pub fn main() { let serviceId = serviceId_example; // String let accept = application/json; // String - let body = body_example; // String let mut context = ServiceRegistryAndSupervisionApi::Context::default(); - let result = client.keepAliveService(serviceId, accept, body, &context).wait(); + let result = client.keepAliveService(serviceId, accept, &context).wait(); println!("{:?}", result); } @@ -14635,54 +14622,6 @@ Specifies the content type that the client expects to receive in response to the -
Body parameters
- - - - - - - - - -
NameDescription
body -

- -
-
diff --git a/a1-policy-management/api/offeredapis/swagger/custom/a1pms-api-custom-v3.json b/a1-policy-management/api/offeredapis/swagger/custom/a1pms-api-custom-v3.json index 37dd6ff9..9d378bd7 100644 --- a/a1-policy-management/api/offeredapis/swagger/custom/a1pms-api-custom-v3.json +++ b/a1-policy-management/api/offeredapis/swagger/custom/a1pms-api-custom-v3.json @@ -1500,16 +1500,6 @@ "type" : "string" } } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "type" : "string" - } - } - }, - "required" : false - }, "responses" : { "200" : { "content" : { diff --git a/a1-policy-management/api/offeredapis/swagger/pms-api-v3.json b/a1-policy-management/api/offeredapis/swagger/pms-api-v3.json index 37dd6ff9..9d378bd7 100644 --- a/a1-policy-management/api/offeredapis/swagger/pms-api-v3.json +++ b/a1-policy-management/api/offeredapis/swagger/pms-api-v3.json @@ -1500,16 +1500,6 @@ "type" : "string" } } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "type" : "string" - } - } - }, - "required" : false - }, "responses" : { "200" : { "content" : { diff --git a/a1-policy-management/api/offeredapis/swagger/pms-api-v3.yaml b/a1-policy-management/api/offeredapis/swagger/pms-api-v3.yaml index f4e16793..482fe319 100644 --- a/a1-policy-management/api/offeredapis/swagger/pms-api-v3.yaml +++ b/a1-policy-management/api/offeredapis/swagger/pms-api-v3.yaml @@ -1063,12 +1063,6 @@ paths: schema: example: application/json type: string - requestBody: - content: - application/json: - schema: - type: string - required: false responses: "200": content: diff --git a/a1-policy-management/open-api-fragments/v3-fragments/service-api.yaml b/a1-policy-management/open-api-fragments/v3-fragments/service-api.yaml index bec1de4d..12366e8b 100644 --- a/a1-policy-management/open-api-fragments/v3-fragments/service-api.yaml +++ b/a1-policy-management/open-api-fragments/v3-fragments/service-api.yaml @@ -26,12 +26,6 @@ keep-alive: schema: type: string example: application/json - requestBody: - required: false - content: - application/json: - schema: - type: string responses: "200": content: diff --git a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v3/ServiceControllerV3.java b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v3/ServiceControllerV3.java index d29e37a6..81d864fa 100644 --- a/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v3/ServiceControllerV3.java +++ b/a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v3/ServiceControllerV3.java @@ -2,7 +2,7 @@ * ========================LICENSE_START================================= * ONAP : ccsdk oran * ====================================================================== - * Copyright (C) 2024 OpenInfra Foundation Europe. All rights reserved. + * Copyright (C) 2024-2025 OpenInfra Foundation Europe. All rights reserved. * ====================================================================== * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -67,7 +67,7 @@ public class ServiceControllerV3 implements ServiceRegistryAndSupervisionApi { } @Override - public Mono> keepAliveService(String serviceId, String accept, Mono body, ServerWebExchange exchange) throws Exception { + public Mono> keepAliveService(String serviceId, String accept, ServerWebExchange exchange) throws Exception { return serviceController.keepAliveService(serviceId, exchange); } diff --git a/docs/offeredapis/openapitoolgen/offeredapis/pms-api/v3/index.html b/docs/offeredapis/openapitoolgen/offeredapis/pms-api/v3/index.html index a9c59bf5..69b5ce4f 100644 --- a/docs/offeredapis/openapitoolgen/offeredapis/pms-api/v3/index.html +++ b/docs/offeredapis/openapitoolgen/offeredapis/pms-api/v3/index.html @@ -14335,9 +14335,7 @@ The identity of the registered service
curl -X PUT \
  -H "Accept: application/json,application/problem+json" \
- -H "Content-Type: application/json" \
- "https://example.com/a1-policy-management/v1/services/{serviceId}/keepalive" \
- -d ''
+ "https://example.com/a1-policy-management/v1/services/{serviceId}/keepalive"
 
@@ -14356,10 +14354,9 @@ public class ServiceRegistryAndSupervisionApiExample { ServiceRegistryAndSupervisionApi apiInstance = new ServiceRegistryAndSupervisionApi(); String serviceId = serviceId_example; // String | String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. - String body = body_example; // String | try { - Object result = apiInstance.keepAliveService(serviceId, accept, body); + Object result = apiInstance.keepAliveService(serviceId, accept); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ServiceRegistryAndSupervisionApi#keepAliveService"); @@ -14377,10 +14374,9 @@ final api_instance = DefaultApi(); final String serviceId = new String(); // String | final String accept = new String(); // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. -final String body = new String(); // String | try { - final result = await api_instance.keepAliveService(serviceId, accept, body); + final result = await api_instance.keepAliveService(serviceId, accept); print(result); } catch (e) { print('Exception when calling DefaultApi->keepAliveService: $e\n'); @@ -14397,10 +14393,9 @@ public class ServiceRegistryAndSupervisionApiExample { ServiceRegistryAndSupervisionApi apiInstance = new ServiceRegistryAndSupervisionApi(); String serviceId = serviceId_example; // String | String accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. - String body = body_example; // String | try { - Object result = apiInstance.keepAliveService(serviceId, accept, body); + Object result = apiInstance.keepAliveService(serviceId, accept); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ServiceRegistryAndSupervisionApi#keepAliveService"); @@ -14420,12 +14415,10 @@ public class ServiceRegistryAndSupervisionApiExample { ServiceRegistryAndSupervisionApi *apiInstance = [[ServiceRegistryAndSupervisionApi alloc] init]; String *serviceId = serviceId_example; // (default to null) String *accept = application/json; // Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null) -String *body = body_example; // (optional) // Heartbeat message from a service (keepAliveService) [apiInstance keepAliveServiceWith:serviceId accept:accept - body:body completionHandler: ^(Object output, NSError* error) { if (output) { NSLog(@"%@", output); @@ -14444,8 +14437,7 @@ String *body = body_example; // (optional) var api = new OnapCcsdkA1PolicyManagementApi.ServiceRegistryAndSupervisionApi() var serviceId = serviceId_example; // {String} var opts = { - 'accept': application/json, // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. - 'body': body_example // {String} + 'accept': application/json // {String} Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. }; var callback = function(error, data, response) { @@ -14480,11 +14472,10 @@ namespace Example var apiInstance = new ServiceRegistryAndSupervisionApi(); var serviceId = serviceId_example; // String | (default to null) var accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null) - var body = body_example; // String | (optional) try { // Heartbeat message from a service (keepAliveService) - Object result = apiInstance.keepAliveService(serviceId, accept, body); + Object result = apiInstance.keepAliveService(serviceId, accept); Debug.WriteLine(result); } catch (Exception e) { Debug.Print("Exception when calling ServiceRegistryAndSupervisionApi.keepAliveService: " + e.Message ); @@ -14503,10 +14494,9 @@ require_once(__DIR__ . '/vendor/autoload.php'); $api_instance = new OpenAPITools\Client\Api\ServiceRegistryAndSupervisionApi(); $serviceId = serviceId_example; // String | $accept = application/json; // String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. -$body = body_example; // String | try { - $result = $api_instance->keepAliveService($serviceId, $accept, $body); + $result = $api_instance->keepAliveService($serviceId, $accept); print_r($result); } catch (Exception $e) { echo 'Exception when calling ServiceRegistryAndSupervisionApi->keepAliveService: ', $e->getMessage(), PHP_EOL; @@ -14523,10 +14513,9 @@ use WWW::OPenAPIClient::ServiceRegistryAndSupervisionApi; my $api_instance = WWW::OPenAPIClient::ServiceRegistryAndSupervisionApi->new(); my $serviceId = serviceId_example; # String | my $accept = application/json; # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. -my $body = WWW::OPenAPIClient::Object::String->new(); # String | eval { - my $result = $api_instance->keepAliveService(serviceId => $serviceId, accept => $accept, body => $body); + my $result = $api_instance->keepAliveService(serviceId => $serviceId, accept => $accept); print Dumper($result); }; if ($@) { @@ -14545,11 +14534,10 @@ from pprint import pprint api_instance = openapi_client.ServiceRegistryAndSupervisionApi() serviceId = serviceId_example # String | (default to null) accept = application/json # String | Specifies the content type that the client expects to receive in response to the request. Only application/json is allowed. (optional) (default to null) -body = body_example # String | (optional) try: # Heartbeat message from a service (keepAliveService) - api_response = api_instance.keep_alive_service(serviceId, accept=accept, body=body) + api_response = api_instance.keep_alive_service(serviceId, accept=accept) pprint(api_response) except ApiException as e: print("Exception when calling ServiceRegistryAndSupervisionApi->keepAliveService: %s\n" % e) @@ -14561,10 +14549,9 @@ except ApiException as e: pub fn main() { let serviceId = serviceId_example; // String let accept = application/json; // String - let body = body_example; // String let mut context = ServiceRegistryAndSupervisionApi::Context::default(); - let result = client.keepAliveService(serviceId, accept, body, &context).wait(); + let result = client.keepAliveService(serviceId, accept, &context).wait(); println!("{:?}", result); } @@ -14635,54 +14622,6 @@ Specifies the content type that the client expects to receive in response to the -
Body parameters
- - - - - - - - - -
NameDescription
body -

- -
-
diff --git a/docs/offeredapis/swagger/custom/a1pms-api-custom-v3.json b/docs/offeredapis/swagger/custom/a1pms-api-custom-v3.json index 37dd6ff9..9d378bd7 100644 --- a/docs/offeredapis/swagger/custom/a1pms-api-custom-v3.json +++ b/docs/offeredapis/swagger/custom/a1pms-api-custom-v3.json @@ -1500,16 +1500,6 @@ "type" : "string" } } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "type" : "string" - } - } - }, - "required" : false - }, "responses" : { "200" : { "content" : { diff --git a/docs/offeredapis/swagger/pms-api-v3.json b/docs/offeredapis/swagger/pms-api-v3.json index 37dd6ff9..9d378bd7 100644 --- a/docs/offeredapis/swagger/pms-api-v3.json +++ b/docs/offeredapis/swagger/pms-api-v3.json @@ -1500,16 +1500,6 @@ "type" : "string" } } ], - "requestBody" : { - "content" : { - "application/json" : { - "schema" : { - "type" : "string" - } - } - }, - "required" : false - }, "responses" : { "200" : { "content" : { diff --git a/docs/offeredapis/swagger/pms-api-v3.yaml b/docs/offeredapis/swagger/pms-api-v3.yaml index f4e16793..482fe319 100644 --- a/docs/offeredapis/swagger/pms-api-v3.yaml +++ b/docs/offeredapis/swagger/pms-api-v3.yaml @@ -1063,12 +1063,6 @@ paths: schema: example: application/json type: string - requestBody: - content: - application/json: - schema: - type: string - required: false responses: "200": content: