Remove requestBody from V3 keepalive 57/140657/1
authorsaul.gill <saul.gill@est.tech>
Mon, 7 Apr 2025 11:04:22 +0000 (12:04 +0100)
committersaul.gill <saul.gill@est.tech>
Mon, 7 Apr 2025 13:00:34 +0000 (14:00 +0100)
Issue-ID: CCSDK-4111
Change-Id: I47a228a5ac3ea9bf2656dba2b91a796466ab7cce
Signed-off-by: saul.gill <saul.gill@est.tech>
a1-policy-management/api/offeredapis/openapitoolgen/offeredapis/pms-api/v3/index.html
a1-policy-management/api/offeredapis/swagger/custom/a1pms-api-custom-v3.json
a1-policy-management/api/offeredapis/swagger/pms-api-v3.json
a1-policy-management/api/offeredapis/swagger/pms-api-v3.yaml
a1-policy-management/open-api-fragments/v3-fragments/service-api.yaml
a1-policy-management/src/main/java/org/onap/ccsdk/oran/a1policymanagementservice/controllers/v3/ServiceControllerV3.java
docs/offeredapis/openapitoolgen/offeredapis/pms-api/v3/index.html
docs/offeredapis/swagger/custom/a1pms-api-custom-v3.json
docs/offeredapis/swagger/pms-api-v3.json
docs/offeredapis/swagger/pms-api-v3.yaml

index a9c59bf..69b5ce4 100644 (file)
@@ -14335,9 +14335,7 @@ The identity of the registered service
                           <div class="tab-pane active" id="examples-ServiceRegistryAndSupervision-keepAliveService-0-curl">
                             <pre class="prettyprint"><code class="language-bsh">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"
 </code></pre>
                           </div>
                           <div class="tab-pane" id="examples-ServiceRegistryAndSupervision-keepAliveService-0-java">
@@ -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)</code></pre>
@@ -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
 
                             </table>
 
-                            <div class="methodsubtabletitle">Body parameters</div>
-                            <table id="methodsubtable">
-                              <tr>
-                                <th width="150px">Name</th>
-                                <th>Description</th>
-                              </tr>
-                                <tr><td style="width:150px;">body </td>
-<td>
-<p class="marked"></p>
-<script>
-$(document).ready(function() {
-  var schemaWrapper = {
-  "content" : {
-    "application/json" : {
-      "schema" : {
-        "type" : "string"
-      }
-    }
-  },
-  "required" : false
-};
-
-  var schema = findNode('schema',schemaWrapper).schema;
-  if (!schema) {
-    schema = schemaWrapper.schema;
-  }
-  if (schema.$ref != null) {
-    schema = defsParser.$refs.get(schema.$ref);
-  } else if (schema.items != null && schema.items.$ref != null) {
-    schema.items = defsParser.$refs.get(schema.items.$ref);
-  } else {
-    schemaWrapper.definitions = Object.assign({}, defs);
-    $RefParser.dereference(schemaWrapper).catch(function(err) {
-      console.log(err);
-    });
-  }
-
-  var view = new JSONSchemaView(schema,2,{isBodyParam: true});
-  var result = $('#d2e199_keepAliveService_body');
-  result.empty();
-  result.append(view.render());
-});
-</script>
-<div id="d2e199_keepAliveService_body"></div>
-</td>
-</tr>
-
-                            </table>
 
 
 
index 37dd6ff..9d378bd 100644 (file)
             "type" : "string"
           }
         } ],
-        "requestBody" : {
-          "content" : {
-            "application/json" : {
-              "schema" : {
-                "type" : "string"
-              }
-            }
-          },
-          "required" : false
-        },
         "responses" : {
           "200" : {
             "content" : {
index 37dd6ff..9d378bd 100644 (file)
             "type" : "string"
           }
         } ],
-        "requestBody" : {
-          "content" : {
-            "application/json" : {
-              "schema" : {
-                "type" : "string"
-              }
-            }
-          },
-          "required" : false
-        },
         "responses" : {
           "200" : {
             "content" : {
index f4e1679..482fe31 100644 (file)
@@ -1063,12 +1063,6 @@ paths:
         schema:
           example: application/json
           type: string
-      requestBody:
-        content:
-          application/json:
-            schema:
-              type: string
-        required: false
       responses:
         "200":
           content:
index bec1de4..12366e8 100644 (file)
@@ -26,12 +26,6 @@ keep-alive:
         schema:
           type: string
           example: application/json
-    requestBody:
-      required: false
-      content:
-        application/json:
-          schema:
-            type: string
     responses:
       "200":
         content:
index d29e37a..81d864f 100644 (file)
@@ -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<ResponseEntity<Object>> keepAliveService(String serviceId, String accept, Mono<String> body, ServerWebExchange exchange) throws Exception {
+    public Mono<ResponseEntity<Object>> keepAliveService(String serviceId, String accept, ServerWebExchange exchange) throws Exception {
         return serviceController.keepAliveService(serviceId, exchange);
     }
 
index a9c59bf..69b5ce4 100644 (file)
@@ -14335,9 +14335,7 @@ The identity of the registered service
                           <div class="tab-pane active" id="examples-ServiceRegistryAndSupervision-keepAliveService-0-curl">
                             <pre class="prettyprint"><code class="language-bsh">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"
 </code></pre>
                           </div>
                           <div class="tab-pane" id="examples-ServiceRegistryAndSupervision-keepAliveService-0-java">
@@ -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)</code></pre>
@@ -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
 
                             </table>
 
-                            <div class="methodsubtabletitle">Body parameters</div>
-                            <table id="methodsubtable">
-                              <tr>
-                                <th width="150px">Name</th>
-                                <th>Description</th>
-                              </tr>
-                                <tr><td style="width:150px;">body </td>
-<td>
-<p class="marked"></p>
-<script>
-$(document).ready(function() {
-  var schemaWrapper = {
-  "content" : {
-    "application/json" : {
-      "schema" : {
-        "type" : "string"
-      }
-    }
-  },
-  "required" : false
-};
-
-  var schema = findNode('schema',schemaWrapper).schema;
-  if (!schema) {
-    schema = schemaWrapper.schema;
-  }
-  if (schema.$ref != null) {
-    schema = defsParser.$refs.get(schema.$ref);
-  } else if (schema.items != null && schema.items.$ref != null) {
-    schema.items = defsParser.$refs.get(schema.items.$ref);
-  } else {
-    schemaWrapper.definitions = Object.assign({}, defs);
-    $RefParser.dereference(schemaWrapper).catch(function(err) {
-      console.log(err);
-    });
-  }
-
-  var view = new JSONSchemaView(schema,2,{isBodyParam: true});
-  var result = $('#d2e199_keepAliveService_body');
-  result.empty();
-  result.append(view.render());
-});
-</script>
-<div id="d2e199_keepAliveService_body"></div>
-</td>
-</tr>
-
-                            </table>
 
 
 
index 37dd6ff..9d378bd 100644 (file)
             "type" : "string"
           }
         } ],
-        "requestBody" : {
-          "content" : {
-            "application/json" : {
-              "schema" : {
-                "type" : "string"
-              }
-            }
-          },
-          "required" : false
-        },
         "responses" : {
           "200" : {
             "content" : {
index 37dd6ff..9d378bd 100644 (file)
             "type" : "string"
           }
         } ],
-        "requestBody" : {
-          "content" : {
-            "application/json" : {
-              "schema" : {
-                "type" : "string"
-              }
-            }
-          },
-          "required" : false
-        },
         "responses" : {
           "200" : {
             "content" : {
index f4e1679..482fe31 100644 (file)
@@ -1063,12 +1063,6 @@ paths:
         schema:
           example: application/json
           type: string
-      requestBody:
-        content:
-          application/json:
-            schema:
-              type: string
-        required: false
       responses:
         "200":
           content: