Bug: 627
[controller.git] / opendaylight / md-sal / sal-rest-docgen / src / main / java / org / opendaylight / controller / sal / rest / doc / swagger / Api.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
14  * (see <a href="https://github.com/wordnik/swagger-spec/blob/master/versions/1.2.md#522-api-object">
15  *   https://github.com/wordnik/swagger-spec/blob/master/versions/1.2.md#522-api-object</a>)
16  */
17 public class Api {
18
19   private String path;
20   private List<Operation> operations;
21
22   public String getPath() {
23     return path;
24   }
25
26   public void setPath(String path) {
27     this.path = path;
28   }
29
30   public List<Operation> getOperations() {
31     return operations;
32   }
33
34   public void setOperations(List<Operation> operations) {
35     this.operations = operations;
36   }
37 }