Bug 931, Bug 910 - Enhance Restconf Swagger Documentation
[controller.git] / opendaylight / md-sal / sal-rest-docgen / src / main / java / org / opendaylight / controller / sal / rest / doc / swagger / ResourceList.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.sal.rest.doc.swagger;
9
10 import java.util.List;
11
12 /**
13  * Implementation of swagger spec (see <a href=
14  * "https://github.com/wordnik/swagger-spec/blob/master/versions/1.2.md#51-resource-listing"
15  * > https://github.com/wordnik/swagger-spec/blob/master/versions/1.2.md#51-
16  * resource-listing</a>)
17  */
18 public class ResourceList {
19     private String apiVersion;
20     private String swaggerVersion;
21     private List<Resource> apis;
22
23     public String getApiVersion() {
24         return apiVersion;
25     }
26
27     public void setApiVersion(String apiVersion) {
28         this.apiVersion = apiVersion;
29     }
30
31     public String getSwaggerVersion() {
32         return swaggerVersion;
33     }
34
35     public void setSwaggerVersion(String swaggerVersion) {
36         this.swaggerVersion = swaggerVersion;
37     }
38
39     public List<Resource> getApis() {
40         return apis;
41     }
42
43     public void setApis(List<Resource> apis) {
44         this.apis = apis;
45     }
46 }