Add swagger.json to main/resources. 57/18257/1
authorlizi <li.zi30@zte.com.cn>
Wed, 11 Oct 2017 10:34:42 +0000 (18:34 +0800)
committerlizi <li.zi30@zte.com.cn>
Wed, 11 Oct 2017 10:34:42 +0000 (18:34 +0800)
Change-Id: Idbe8b45d713017a0dd487037e504238f7a58efcc
Issue-ID: AAI-430
Signed-off-by: lizi <li.zi30@zte.com.cn>
esr-mgr/pom.xml
esr-mgr/src/main/java/org/onap/aai/esr/ExtsysApp.java
esr-mgr/src/main/java/org/onap/aai/esr/resource/EmsManager.java
esr-mgr/src/main/java/org/onap/aai/esr/resource/ThirdpatySdncManager.java
esr-mgr/src/main/java/org/onap/aai/esr/resource/VimManager.java
esr-mgr/src/main/java/org/onap/aai/esr/resource/VnfmManager.java
esr-mgr/src/main/resources/swagger.json [new file with mode: 0644]

index 7f9057d..cfc1714 100644 (file)
             <version>1.0.0</version>
          </dependency>    
     </dependencies>
+       
+       <profiles>
+        <profile>
+            <id>swagger</id>
+            <dependencies>
+                <dependency>
+                    <groupId>io.swagger</groupId>
+                    <artifactId>swagger-jersey2-jaxrs</artifactId>
+                    <version>1.5.0</version>
+                </dependency>
+            </dependencies>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>com.github.kongchen</groupId>
+                        <artifactId>swagger-maven-plugin</artifactId>
+                        <version>3.1.1</version>
+                        <configuration>
+                            <apiSources>
+                                <apiSource>
+                                    <springmvc>false</springmvc>
+                                    <locations>org.onap.aai.esr.resource</locations>
+                                    <basePath>/api/aai-esr-server/v1/</basePath>
+                                    <info>
+                                        <title>API Descriptions for External System Management</title>
+                                        <version>v1</version>
+                                        <description>
+                                            This page shows all the APIs available in the ESR server module.
+                                        </description>
+                                        <termsOfService>
+                                            http://www.github.com/kongchen/swagger-maven-plugin
+                                        </termsOfService>
+                                        <contact>
+                                            <email>li.zi30@zte.com.cn</email>
+                                            <name>Zi Li</name>
+                                        </contact>
+                                        <license>
+                                            <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
+                                            <name>Apache 2.0</name>
+                                        </license>
+                                    </info>
+                                    <securityDefinitions>
+                                    </securityDefinitions>
+                                    <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
+                                </apiSource>
+                            </apiSources>
+                        </configuration>
+                        <executions>
+                            <execution>
+                                <phase>compile</phase>
+                                <goals>
+                                    <goal>generate</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                        <dependencies>
+                            <dependency>
+                                <groupId>io.swagger</groupId>
+                                <artifactId>swagger-hibernate-validations</artifactId>
+                                <version>1.5.6</version>
+                            </dependency>
+                        </dependencies>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 </project>
index adcaa08..2e1ae6f 100644 (file)
@@ -61,6 +61,7 @@ public class ExtsysApp extends Application<ExtsysAppConfiguration> {
       MsbHelper helper = new MsbHelper(msbClient);
       try {
         helper.registerMsb();
+        LOGGER.info("Register esr-server to msb by java-sdk finished");
       } catch (Exception e) {
         LOGGER.error("Register esr-server to msb by java-sdk failed", e);
       }
index 861cd5a..11fba23 100644 (file)
@@ -21,6 +21,7 @@ import io.swagger.annotations.ApiOperation;
 import io.swagger.annotations.ApiParam;
 import io.swagger.annotations.ApiResponse;
 import io.swagger.annotations.ApiResponses;
+import io.swagger.annotations.SwaggerDefinition;
 
 import org.eclipse.jetty.http.HttpStatus;
 import org.onap.aai.esr.entity.rest.EmsRegisterInfo;
@@ -40,6 +41,7 @@ import javax.ws.rs.Produces;
 import javax.ws.rs.core.MediaType;
 import javax.ws.rs.core.Response;
 
+@SwaggerDefinition
 @Path("/emses")
 @Api(tags = {" ems Management "})
 public class EmsManager {
index 0d0f935..8660ade 100644 (file)
@@ -21,6 +21,7 @@ import io.swagger.annotations.ApiOperation;
 import io.swagger.annotations.ApiParam;
 import io.swagger.annotations.ApiResponse;
 import io.swagger.annotations.ApiResponses;
+import io.swagger.annotations.SwaggerDefinition;
 
 import org.eclipse.jetty.http.HttpStatus;
 import org.onap.aai.esr.entity.rest.ThirdpartySdncRegisterInfo;
@@ -40,6 +41,7 @@ import javax.ws.rs.Produces;
 import javax.ws.rs.core.MediaType;
 import javax.ws.rs.core.Response;
 
+@SwaggerDefinition
 @Path("/sdncontrollers")
 @Api(tags = {"ThirdParty sdnc Management     "})
 public class ThirdpatySdncManager {
index 75fc10b..aa7d34d 100644 (file)
@@ -20,6 +20,8 @@ import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import io.swagger.annotations.ApiResponse;
 import io.swagger.annotations.ApiResponses;
+import io.swagger.annotations.SwaggerDefinition;
+
 import org.eclipse.jetty.http.HttpStatus;
 import org.onap.aai.esr.entity.rest.VimRegisterInfo;
 import org.onap.aai.esr.util.ExtsysUtil;
@@ -38,6 +40,7 @@ import javax.ws.rs.Produces;
 import javax.ws.rs.core.MediaType;
 import javax.ws.rs.core.Response;
 
+@SwaggerDefinition
 @Path("/vims")
 @Api(tags = {" vim Management "})
 public class VimManager {
index 4a76a90..893b5b5 100644 (file)
@@ -21,6 +21,8 @@ import io.swagger.annotations.ApiOperation;
 import io.swagger.annotations.ApiParam;
 import io.swagger.annotations.ApiResponse;
 import io.swagger.annotations.ApiResponses;
+import io.swagger.annotations.SwaggerDefinition;
+
 import org.eclipse.jetty.http.HttpStatus;
 import org.onap.aai.esr.entity.rest.VnfmRegisterInfo;
 import org.onap.aai.esr.util.ExtsysUtil;
@@ -39,6 +41,7 @@ import javax.ws.rs.Produces;
 import javax.ws.rs.core.MediaType;
 import javax.ws.rs.core.Response;
 
+@SwaggerDefinition
 @Path("/vnfms")
 @Api(tags = {" vnfm Management "})
 public class VnfmManager {
diff --git a/esr-mgr/src/main/resources/swagger.json b/esr-mgr/src/main/resources/swagger.json
new file mode 100644 (file)
index 0000000..155b4cb
--- /dev/null
@@ -0,0 +1,723 @@
+{\r
+  "swagger" : "2.0",\r
+  "info" : {\r
+    "description" : "This page shows all the APIs available in the ESR server module.",\r
+    "version" : "v1",\r
+    "title" : "API Descriptions for External System Management",\r
+    "termsOfService" : "http://www.github.com/kongchen/swagger-maven-plugin",\r
+    "contact" : {\r
+      "name" : "Zi Li",\r
+      "email" : "li.zi30@zte.com.cn"\r
+    },\r
+    "license" : {\r
+      "name" : "Apache 2.0",\r
+      "url" : "http://www.apache.org/licenses/LICENSE-2.0.html"\r
+    }\r
+  },\r
+  "basePath" : "/api/aai-esr-server/v1/",\r
+  "tags" : [ {\r
+    "name" : " ems Management "\r
+  }, {\r
+    "name" : " service test "\r
+  }, {\r
+    "name" : " vim Management "\r
+  }, {\r
+    "name" : " vnfm Management "\r
+  }, {\r
+    "name" : "ThirdParty sdnc Management     "\r
+  } ],\r
+  "paths" : {\r
+    "/emses" : {\r
+      "get" : {\r
+        "tags" : [ " ems Management " ],\r
+        "summary" : "get  all ems ",\r
+        "description" : "",\r
+        "operationId" : "queryEmsList",\r
+        "produces" : [ "application/json" ],\r
+        "responses" : {\r
+          "404" : {\r
+            "description" : "microservice not found"\r
+          },\r
+          "415" : {\r
+            "description" : "Unprocessable MicroServiceInfo Entity "\r
+          },\r
+          "500" : {\r
+            "description" : "internal server error"\r
+          }\r
+        }\r
+      },\r
+      "post" : {\r
+        "tags" : [ " ems Management " ],\r
+        "summary" : "create a ems",\r
+        "description" : "",\r
+        "operationId" : "registerEms",\r
+        "consumes" : [ "application/json" ],\r
+        "produces" : [ "text/plain", "application/json" ],\r
+        "parameters" : [ {\r
+          "in" : "body",\r
+          "name" : "body",\r
+          "description" : "ems",\r
+          "required" : true,\r
+          "schema" : {\r
+            "$ref" : "#/definitions/EmsRegisterInfo"\r
+          }\r
+        } ],\r
+        "responses" : {\r
+          "404" : {\r
+            "description" : "microservice not found"\r
+          },\r
+          "415" : {\r
+            "description" : "Unprocessable MicroServiceInfo Entity "\r
+          },\r
+          "500" : {\r
+            "description" : "internal server error"\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/emses/{emsId}" : {\r
+      "get" : {\r
+        "tags" : [ " ems Management " ],\r
+        "summary" : "get ems by id",\r
+        "description" : "",\r
+        "operationId" : "queryemsById",\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "name" : "emsId",\r
+          "in" : "path",\r
+          "description" : "ems id",\r
+          "required" : true,\r
+          "type" : "string"\r
+        } ],\r
+        "responses" : {\r
+          "404" : {\r
+            "description" : "microservice not found"\r
+          },\r
+          "415" : {\r
+            "description" : "Unprocessable MicroServiceInfo Entity "\r
+          },\r
+          "500" : {\r
+            "description" : "internal server error"\r
+          }\r
+        }\r
+      },\r
+      "put" : {\r
+        "tags" : [ " ems Management " ],\r
+        "summary" : "update a ems",\r
+        "description" : "",\r
+        "operationId" : "updateEms",\r
+        "consumes" : [ "application/json" ],\r
+        "produces" : [ "text/plain", "application/json" ],\r
+        "parameters" : [ {\r
+          "in" : "body",\r
+          "name" : "body",\r
+          "description" : "ems",\r
+          "required" : true,\r
+          "schema" : {\r
+            "$ref" : "#/definitions/EmsRegisterInfo"\r
+          }\r
+        }, {\r
+          "name" : "emsId",\r
+          "in" : "path",\r
+          "description" : "ems id",\r
+          "required" : true,\r
+          "type" : "string"\r
+        } ],\r
+        "responses" : {\r
+          "404" : {\r
+            "description" : "microservice not found"\r
+          },\r
+          "415" : {\r
+            "description" : "Unprocessable MicroServiceInfo Entity "\r
+          },\r
+          "500" : {\r
+            "description" : "internal server error"\r
+          }\r
+        }\r
+      },\r
+      "delete" : {\r
+        "tags" : [ " ems Management " ],\r
+        "summary" : "delete a ems",\r
+        "description" : "",\r
+        "operationId" : "delems",\r
+        "parameters" : [ {\r
+          "name" : "emsId",\r
+          "in" : "path",\r
+          "description" : "ems id",\r
+          "required" : true,\r
+          "type" : "string"\r
+        } ],\r
+        "responses" : {\r
+          "404" : {\r
+            "description" : "microservice not found"\r
+          },\r
+          "415" : {\r
+            "description" : "Unprocessable MicroServiceInfo Entity "\r
+          },\r
+          "500" : {\r
+            "description" : "internal server error"\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/sdncontrollers" : {\r
+      "get" : {\r
+        "tags" : [ "ThirdParty sdnc Management     " ],\r
+        "summary" : "get all thirdParty sdnc ",\r
+        "description" : "",\r
+        "operationId" : "queryThirdpartySdncList",\r
+        "produces" : [ "application/json" ],\r
+        "responses" : {\r
+          "404" : {\r
+            "description" : "microservice not found"\r
+          },\r
+          "415" : {\r
+            "description" : "Unprocessable MicroServiceInfo Entity "\r
+          },\r
+          "500" : {\r
+            "description" : "internal server error"\r
+          }\r
+        }\r
+      },\r
+      "post" : {\r
+        "tags" : [ "ThirdParty sdnc Management     " ],\r
+        "summary" : "register a thirdparty sdnc",\r
+        "description" : "",\r
+        "operationId" : "registerThirdpatySdnc",\r
+        "consumes" : [ "application/json" ],\r
+        "produces" : [ "text/plain", "application/json" ],\r
+        "parameters" : [ {\r
+          "in" : "body",\r
+          "name" : "body",\r
+          "description" : "thirdPartySdnc",\r
+          "required" : true,\r
+          "schema" : {\r
+            "$ref" : "#/definitions/ThirdpartySdncRegisterInfo"\r
+          }\r
+        } ],\r
+        "responses" : {\r
+          "404" : {\r
+            "description" : "microservice not found"\r
+          },\r
+          "415" : {\r
+            "description" : "Unprocessable MicroServiceInfo Entity "\r
+          },\r
+          "500" : {\r
+            "description" : "internal server error"\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/sdncontrollers/{thirdPartySdncId}" : {\r
+      "get" : {\r
+        "tags" : [ "ThirdParty sdnc Management     " ],\r
+        "summary" : "get thirdParty sdnc by id",\r
+        "description" : "",\r
+        "operationId" : "queryThirdpartySdncById",\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "name" : "thirdPartySdncId",\r
+          "in" : "path",\r
+          "description" : "thirdparty sdnc id",\r
+          "required" : true,\r
+          "type" : "string"\r
+        } ],\r
+        "responses" : {\r
+          "404" : {\r
+            "description" : "microservice not found"\r
+          },\r
+          "415" : {\r
+            "description" : "Unprocessable MicroServiceInfo Entity "\r
+          },\r
+          "500" : {\r
+            "description" : "internal server error"\r
+          }\r
+        }\r
+      },\r
+      "put" : {\r
+        "tags" : [ "ThirdParty sdnc Management     " ],\r
+        "summary" : "update a thirdParty Sdnc",\r
+        "description" : "",\r
+        "operationId" : "updateThirdpartySdnc",\r
+        "consumes" : [ "application/json" ],\r
+        "produces" : [ "text/plain", "application/json" ],\r
+        "parameters" : [ {\r
+          "in" : "body",\r
+          "name" : "body",\r
+          "description" : "thirdpartySdnc",\r
+          "required" : true,\r
+          "schema" : {\r
+            "$ref" : "#/definitions/ThirdpartySdncRegisterInfo"\r
+          }\r
+        }, {\r
+          "name" : "thirdPartySdncId",\r
+          "in" : "path",\r
+          "description" : "sdnc id",\r
+          "required" : true,\r
+          "type" : "string"\r
+        } ],\r
+        "responses" : {\r
+          "404" : {\r
+            "description" : "microservice not found"\r
+          },\r
+          "415" : {\r
+            "description" : "Unprocessable MicroServiceInfo Entity "\r
+          },\r
+          "500" : {\r
+            "description" : "internal server error"\r
+          }\r
+        }\r
+      },\r
+      "delete" : {\r
+        "tags" : [ "ThirdParty sdnc Management     " ],\r
+        "summary" : "delete a thirdparty sdnc",\r
+        "description" : "",\r
+        "operationId" : "delThirdpartySdnc",\r
+        "parameters" : [ {\r
+          "name" : "thirdPartySdncId",\r
+          "in" : "path",\r
+          "description" : "thirdparty sdnc id",\r
+          "required" : true,\r
+          "type" : "string"\r
+        } ],\r
+        "responses" : {\r
+          "404" : {\r
+            "description" : "microservice not found"\r
+          },\r
+          "415" : {\r
+            "description" : "Unprocessable MicroServiceInfo Entity "\r
+          },\r
+          "500" : {\r
+            "description" : "internal server error"\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/test" : {\r
+      "get" : {\r
+        "tags" : [ " service test " ],\r
+        "summary" : " service test ",\r
+        "description" : "",\r
+        "operationId" : "queryEmsList",\r
+        "produces" : [ "application/json" ],\r
+        "responses" : {\r
+          "404" : {\r
+            "description" : "microservice not found"\r
+          },\r
+          "415" : {\r
+            "description" : "Unprocessable MicroServiceInfo Entity "\r
+          },\r
+          "500" : {\r
+            "description" : "internal server error"\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/vims" : {\r
+      "get" : {\r
+        "tags" : [ " vim Management " ],\r
+        "summary" : "get  all vim ",\r
+        "description" : "",\r
+        "operationId" : "queryVimList",\r
+        "produces" : [ "application/json" ],\r
+        "responses" : {\r
+          "404" : {\r
+            "description" : "microservice not found"\r
+          },\r
+          "415" : {\r
+            "description" : "Unprocessable MicroServiceInfo Entity "\r
+          },\r
+          "500" : {\r
+            "description" : "internal server error"\r
+          }\r
+        }\r
+      },\r
+      "post" : {\r
+        "tags" : [ " vim Management " ],\r
+        "summary" : "create a vim",\r
+        "description" : "",\r
+        "operationId" : "registerVims",\r
+        "consumes" : [ "application/json" ],\r
+        "produces" : [ "text/plain", "application/json" ],\r
+        "responses" : {\r
+          "404" : {\r
+            "description" : "microservice not found"\r
+          },\r
+          "415" : {\r
+            "description" : "Unprocessable MicroServiceInfo Entity "\r
+          },\r
+          "500" : {\r
+            "description" : "internal server error"\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/vims/{cloudOwner}/{cloudRegionId}" : {\r
+      "get" : {\r
+        "tags" : [ " vim Management " ],\r
+        "summary" : "get vim by id",\r
+        "description" : "",\r
+        "operationId" : "queryVimById",\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "name" : "cloudOwner",\r
+          "in" : "path",\r
+          "required" : true,\r
+          "type" : "string"\r
+        }, {\r
+          "name" : "cloudRegionId",\r
+          "in" : "path",\r
+          "required" : true,\r
+          "type" : "string"\r
+        } ],\r
+        "responses" : {\r
+          "404" : {\r
+            "description" : "microservice not found"\r
+          },\r
+          "415" : {\r
+            "description" : "Unprocessable MicroServiceInfo Entity "\r
+          },\r
+          "500" : {\r
+            "description" : "internal server error"\r
+          }\r
+        }\r
+      },\r
+      "put" : {\r
+        "tags" : [ " vim Management " ],\r
+        "summary" : "update a vim",\r
+        "description" : "",\r
+        "operationId" : "updatevims",\r
+        "consumes" : [ "application/json" ],\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "name" : "cloudOwner",\r
+          "in" : "path",\r
+          "required" : true,\r
+          "type" : "string"\r
+        }, {\r
+          "name" : "cloudRegionId",\r
+          "in" : "path",\r
+          "required" : true,\r
+          "type" : "string"\r
+        } ],\r
+        "responses" : {\r
+          "404" : {\r
+            "description" : "microservice not found"\r
+          },\r
+          "415" : {\r
+            "description" : "Unprocessable MicroServiceInfo Entity "\r
+          },\r
+          "500" : {\r
+            "description" : "internal server error"\r
+          }\r
+        }\r
+      },\r
+      "delete" : {\r
+        "tags" : [ " vim Management " ],\r
+        "summary" : "delete a vim",\r
+        "description" : "",\r
+        "operationId" : "delvim",\r
+        "parameters" : [ {\r
+          "name" : "cloudOwner",\r
+          "in" : "path",\r
+          "required" : true,\r
+          "type" : "string"\r
+        }, {\r
+          "name" : "cloudRegionId",\r
+          "in" : "path",\r
+          "required" : true,\r
+          "type" : "string"\r
+        } ],\r
+        "responses" : {\r
+          "404" : {\r
+            "description" : "microservice not found"\r
+          },\r
+          "415" : {\r
+            "description" : "Unprocessable MicroServiceInfo Entity "\r
+          },\r
+          "500" : {\r
+            "description" : "internal server error"\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/vnfms" : {\r
+      "get" : {\r
+        "tags" : [ " vnfm Management " ],\r
+        "summary" : "get  all vnfm ",\r
+        "description" : "",\r
+        "operationId" : "queryVnfmList",\r
+        "produces" : [ "application/json" ],\r
+        "responses" : {\r
+          "404" : {\r
+            "description" : "microservice not found"\r
+          },\r
+          "415" : {\r
+            "description" : "Unprocessable MicroServiceInfo Entity "\r
+          },\r
+          "500" : {\r
+            "description" : "internal server error"\r
+          }\r
+        }\r
+      },\r
+      "post" : {\r
+        "tags" : [ " vnfm Management " ],\r
+        "summary" : "create a vnfm",\r
+        "description" : "",\r
+        "operationId" : "registerVnfm",\r
+        "consumes" : [ "application/json" ],\r
+        "produces" : [ "text/plain", "application/json" ],\r
+        "parameters" : [ {\r
+          "in" : "body",\r
+          "name" : "body",\r
+          "description" : "vnfm",\r
+          "required" : true,\r
+          "schema" : {\r
+            "$ref" : "#/definitions/VnfmRegisterInfo"\r
+          }\r
+        } ],\r
+        "responses" : {\r
+          "404" : {\r
+            "description" : "microservice not found"\r
+          },\r
+          "415" : {\r
+            "description" : "Unprocessable MicroServiceInfo Entity "\r
+          },\r
+          "500" : {\r
+            "description" : "internal server error"\r
+          }\r
+        }\r
+      }\r
+    },\r
+    "/vnfms/{vnfmId}" : {\r
+      "get" : {\r
+        "tags" : [ " vnfm Management " ],\r
+        "summary" : "get vnfm by id",\r
+        "description" : "",\r
+        "operationId" : "queryVnfmById",\r
+        "produces" : [ "application/json" ],\r
+        "parameters" : [ {\r
+          "name" : "vnfmId",\r
+          "in" : "path",\r
+          "description" : "vnfm id",\r
+          "required" : true,\r
+          "type" : "string"\r
+        } ],\r
+        "responses" : {\r
+          "404" : {\r
+            "description" : "microservice not found"\r
+          },\r
+          "415" : {\r
+            "description" : "Unprocessable MicroServiceInfo Entity "\r
+          },\r
+          "500" : {\r
+            "description" : "internal server error"\r
+          }\r
+        }\r
+      },\r
+      "put" : {\r
+        "tags" : [ " vnfm Management " ],\r
+        "summary" : "update a vnfm",\r
+        "description" : "",\r
+        "operationId" : "updateVnfm",\r
+        "consumes" : [ "application/json" ],\r
+        "produces" : [ "text/plain", "application/json" ],\r
+        "parameters" : [ {\r
+          "in" : "body",\r
+          "name" : "body",\r
+          "description" : "vnfm",\r
+          "required" : true,\r
+          "schema" : {\r
+            "$ref" : "#/definitions/VnfmRegisterInfo"\r
+          }\r
+        }, {\r
+          "name" : "vnfmId",\r
+          "in" : "path",\r
+          "description" : "vnfm id",\r
+          "required" : true,\r
+          "type" : "string"\r
+        } ],\r
+        "responses" : {\r
+          "404" : {\r
+            "description" : "microservice not found"\r
+          },\r
+          "415" : {\r
+            "description" : "Unprocessable MicroServiceInfo Entity "\r
+          },\r
+          "500" : {\r
+            "description" : "internal server error"\r
+          }\r
+        }\r
+      },\r
+      "delete" : {\r
+        "tags" : [ " vnfm Management " ],\r
+        "summary" : "delete a vnfm",\r
+        "description" : "",\r
+        "operationId" : "delVnfm",\r
+        "parameters" : [ {\r
+          "name" : "vnfmId",\r
+          "in" : "path",\r
+          "description" : "vnfm id",\r
+          "required" : true,\r
+          "type" : "string"\r
+        } ],\r
+        "responses" : {\r
+          "404" : {\r
+            "description" : "microservice not found"\r
+          },\r
+          "415" : {\r
+            "description" : "Unprocessable MicroServiceInfo Entity "\r
+          },\r
+          "500" : {\r
+            "description" : "internal server error"\r
+          }\r
+        }\r
+      }\r
+    }\r
+  },\r
+  "definitions" : {\r
+    "AlarmAddr" : {\r
+      "type" : "object",\r
+      "properties" : {\r
+        "ip" : {\r
+          "type" : "string"\r
+        },\r
+        "port" : {\r
+          "type" : "string"\r
+        },\r
+        "user" : {\r
+          "type" : "string"\r
+        },\r
+        "password" : {\r
+          "type" : "string"\r
+        }\r
+      }\r
+    },\r
+    "EmsRegisterInfo" : {\r
+      "type" : "object",\r
+      "properties" : {\r
+        "emsId" : {\r
+          "type" : "string"\r
+        },\r
+        "name" : {\r
+          "type" : "string"\r
+        },\r
+        "vendor" : {\r
+          "type" : "string"\r
+        },\r
+        "version" : {\r
+          "type" : "string"\r
+        },\r
+        "resourceAddr" : {\r
+          "$ref" : "#/definitions/FtpAddr"\r
+        },\r
+        "performanceAddr" : {\r
+          "$ref" : "#/definitions/FtpAddr"\r
+        },\r
+        "alarmAddr" : {\r
+          "$ref" : "#/definitions/AlarmAddr"\r
+        }\r
+      }\r
+    },\r
+    "FtpAddr" : {\r
+      "type" : "object",\r
+      "properties" : {\r
+        "ftptype" : {\r
+          "type" : "string"\r
+        },\r
+        "ip" : {\r
+          "type" : "string"\r
+        },\r
+        "port" : {\r
+          "type" : "string"\r
+        },\r
+        "user" : {\r
+          "type" : "string"\r
+        },\r
+        "password" : {\r
+          "type" : "string"\r
+        },\r
+        "remotepath" : {\r
+          "type" : "string"\r
+        },\r
+        "passive" : {\r
+          "type" : "boolean",\r
+          "default" : false\r
+        }\r
+      }\r
+    },\r
+    "ThirdpartySdncRegisterInfo" : {\r
+      "type" : "object",\r
+      "properties" : {\r
+        "thirdpartySdncId" : {\r
+          "type" : "string"\r
+        },\r
+        "name" : {\r
+          "type" : "string"\r
+        },\r
+        "vendor" : {\r
+          "type" : "string"\r
+        },\r
+        "version" : {\r
+          "type" : "string"\r
+        },\r
+        "type" : {\r
+          "type" : "string"\r
+        },\r
+        "location" : {\r
+          "type" : "string"\r
+        },\r
+        "url" : {\r
+          "type" : "string"\r
+        },\r
+        "userName" : {\r
+          "type" : "string"\r
+        },\r
+        "password" : {\r
+          "type" : "string"\r
+        },\r
+        "productName" : {\r
+          "type" : "string"\r
+        },\r
+        "protocol" : {\r
+          "type" : "string"\r
+        }\r
+      }\r
+    },\r
+    "VnfmRegisterInfo" : {\r
+      "type" : "object",\r
+      "properties" : {\r
+        "vnfmId" : {\r
+          "type" : "string"\r
+        },\r
+        "name" : {\r
+          "type" : "string"\r
+        },\r
+        "type" : {\r
+          "type" : "string"\r
+        },\r
+        "vimId" : {\r
+          "type" : "string"\r
+        },\r
+        "vendor" : {\r
+          "type" : "string"\r
+        },\r
+        "version" : {\r
+          "type" : "string"\r
+        },\r
+        "certificateUrl" : {\r
+          "type" : "string"\r
+        },\r
+        "url" : {\r
+          "type" : "string"\r
+        },\r
+        "userName" : {\r
+          "type" : "string"\r
+        },\r
+        "password" : {\r
+          "type" : "string"\r
+        }\r
+      }\r
+    }\r
+  }\r
+}
\ No newline at end of file