aboutsummaryrefslogtreecommitdiffstats
path: root/runtime-acm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime-acm')
-rw-r--r--runtime-acm/pom.xml36
-rw-r--r--runtime-acm/src/main/resources/openapi/openapi.yaml8
2 files changed, 43 insertions, 1 deletions
diff --git a/runtime-acm/pom.xml b/runtime-acm/pom.xml
index 9a0487544..ea134683f 100644
--- a/runtime-acm/pom.xml
+++ b/runtime-acm/pom.xml
@@ -53,6 +53,42 @@
<build>
<plugins>
+ <!-- Swagger code generation. -->
+ <plugin>
+ <groupId>io.swagger.codegen.v3</groupId>
+ <artifactId>swagger-codegen-maven-plugin</artifactId>
+ <version>3.0.27</version>
+ <executions>
+ <execution>
+ <id>code-gen</id>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ <configuration>
+ <inputSpec>${project.basedir}/src/main/resources/openapi/openapi.yaml</inputSpec>
+ <invokerPackage>org.onap.acm.rest.controller</invokerPackage>
+ <modelPackage>org.onap.acm.rest.model</modelPackage>
+ <apiPackage>org.onap.acm.rest.api</apiPackage>
+ <language>spring</language>
+ <generateModels>false</generateModels>
+ <generateSupportingFiles>false</generateSupportingFiles>
+ <importMappings>InstancePropertiesResponse=org.onap.policy.clamp.models.acm.messages.rest.instantiation.InstancePropertiesResponse,
+ CommissioningResponse=org.onap.policy.clamp.models.acm.messages.rest.commissioning.CommissioningResponse,
+ ToscaNodeTemplate=org.onap.policy.models.tosca.authorative.concepts.ToscaNodeTemplate,
+ ToscaServiceTemplate=org.onap.policy.models.tosca.authorative.concepts.ToscaServiceTemplate,
+ AutomationCompositions=org.onap.policy.clamp.models.acm.concepts.AutomationCompositions,
+ InstantiationCommand=org.onap.policy.clamp.models.acm.messages.rest.instantiation.InstantiationCommand,
+ InstantiationResponse=org.onap.policy.clamp.models.acm.messages.rest.instantiation.InstantiationResponse</importMappings>
+ <configOptions>
+ <sourceFolder>src/gen/java</sourceFolder>
+ <dateLibrary>java11</dateLibrary>
+ <interfaceOnly>true</interfaceOnly>
+ <useTags>true</useTags>
+ </configOptions>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-remote-resources-plugin</artifactId>
diff --git a/runtime-acm/src/main/resources/openapi/openapi.yaml b/runtime-acm/src/main/resources/openapi/openapi.yaml
index 5075ee5e6..dfa8ec6d1 100644
--- a/runtime-acm/src/main/resources/openapi/openapi.yaml
+++ b/runtime-acm/src/main/resources/openapi/openapi.yaml
@@ -231,6 +231,9 @@ paths:
404:
description: Not Found
content: {}
+ 406:
+ description: Specified automation composition definition is not acceptable. See the content for error messages.
+ content: {}
500:
description: Internal Server Error
headers:
@@ -790,6 +793,9 @@ paths:
404:
description: The specified automation composition definition was not found
content: {}
+ 406:
+ description: Specified automation composition instance definition is not acceptable. See the content for error messages.
+ content: {}
500:
description: Internal Server Error
headers:
@@ -922,7 +928,7 @@ paths:
tags:
- Automation Composition Controller
summary: Update an automation composition instance
- description: THis request updates an automation composition instance. It may update instance properties or change the state of the automation composition instance
+ description: This request updates an automation composition instance. It may update instance properties or change the state of the automation composition instance
operationId: updateCompositionInstance
parameters:
- name : compositionId