Update swagger generator to OpenAPI 3.0
[netconf.git] / restconf / sal-rest-docgen / src / main / java / org / opendaylight / netconf / sal / rest / doc / swagger / ApiDeclaration.java
diff --git a/restconf/sal-rest-docgen/src/main/java/org/opendaylight/netconf/sal/rest/doc/swagger/ApiDeclaration.java b/restconf/sal-rest-docgen/src/main/java/org/opendaylight/netconf/sal/rest/doc/swagger/ApiDeclaration.java
deleted file mode 100644 (file)
index 00c6de8..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-/*
- * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.netconf.sal.rest.doc.swagger;
-
-import com.fasterxml.jackson.databind.node.ObjectNode;
-import java.util.List;
-
-/**
- * Implementation of swagger spec (see <a href=
- * "https://github.com/wordnik/swagger-spec/blob/master/versions/1.2.md#52-api-declaration"
- * > https://github.com/wordnik/swagger-spec/blob/master/versions/1.2.md#52-api-
- * declaration</a>).
- */
-public class ApiDeclaration {
-    private String apiVersion;
-    private String swaggerVersion;
-    private String basePath;
-    private String resourcePath;
-    private List<String> produces;
-    private List<Api> apis;
-    private ObjectNode models;
-
-    public ObjectNode getModels() {
-        return models;
-    }
-
-    public void setModels(ObjectNode models) {
-        this.models = models;
-    }
-
-    public String getApiVersion() {
-        return apiVersion;
-    }
-
-    public void setApiVersion(String apiVersion) {
-        this.apiVersion = apiVersion;
-    }
-
-    public String getSwaggerVersion() {
-        return swaggerVersion;
-    }
-
-    public void setSwaggerVersion(String swaggerVersion) {
-        this.swaggerVersion = swaggerVersion;
-    }
-
-    public String getBasePath() {
-        return basePath;
-    }
-
-    public void setBasePath(String basePath) {
-        this.basePath = basePath;
-    }
-
-    public String getResourcePath() {
-        return resourcePath;
-    }
-
-    public void setResourcePath(String resourcePath) {
-        this.resourcePath = resourcePath;
-    }
-
-    public List<String> getProduces() {
-        return produces;
-    }
-
-    public void setProduces(List<String> produces) {
-        this.produces = produces;
-    }
-
-    public List<Api> getApis() {
-        return apis;
-    }
-
-    public void setApis(List<Api> apis) {
-        this.apis = apis;
-    }
-
-    public boolean hasApi() {
-        return (apis != null && !apis.isEmpty());
-    }
-
-    public boolean hasModel() {
-        return (models != null && models.size() > 0);
-    }
-}