2 * Copyright (c) 2020 PANTHEON.tech, s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.netconf.sal.rest.doc.openapi;
10 import com.fasterxml.jackson.databind.node.ArrayNode;
11 import com.fasterxml.jackson.databind.node.ObjectNode;
12 import java.util.List;
14 public class SwaggerObject implements CommonApiObject {
15 private String swagger;
17 private List<String> schemes;
19 private String basePath;
20 private List<String> produces;
21 private ObjectNode paths;
22 private ObjectNode definitions;
23 private SecurityDefinitions securityDefinitions;
24 private ArrayNode security;
26 public ObjectNode getDefinitions() {
30 public void setDefinitions(ObjectNode definitions) {
31 this.definitions = definitions;
34 public String getBasePath() {
38 public void setBasePath(String basePath) {
39 this.basePath = basePath;
42 public List<String> getProduces() {
46 public void setProduces(List<String> produces) {
47 this.produces = produces;
50 public List<String> getSchemes() {
54 public void setSchemes(List<String> schemes) {
55 this.schemes = schemes;
58 public String getHost() {
62 public void setHost(String host) {
66 public void setPaths(ObjectNode paths) {
70 public ObjectNode getPaths() {
74 public Info getInfo() {
78 public void setInfo(Info info) {
82 public String getSwagger() {
86 public void setSwagger(String swagger) {
87 this.swagger = swagger;
90 public SecurityDefinitions getSecurityDefinitions() {
91 return securityDefinitions;
94 public void setSecurityDefinitions(SecurityDefinitions securityDefinitions) {
95 this.securityDefinitions = securityDefinitions;
98 public ArrayNode getSecurity() {
102 public void setSecurity(ArrayNode security) {
103 this.security = security;