2 * Copyright (c) 2014 Cisco Systems, Inc. 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.controller.sal.rest.doc.swagger;
10 import java.util.List;
13 * Implementation of swagger spec
14 * (see <a href="https://github.com/wordnik/swagger-spec/blob/master/versions/1.2.md#523-operation-object">
15 * https://github.com/wordnik/swagger-spec/blob/master/versions/1.2.md#523-operation-object</a>)
17 public class Operation {
18 private String method;
19 private String summary;
22 private String nickname;
23 private List<String> consumes;
24 private List<Parameter> parameters;
25 private List<ResponseMessage> responseMessages;
27 public String getMethod() {
31 public void setMethod(String method) {
35 public String getSummary() {
39 public void setSummary(String summary) {
40 this.summary = summary;
43 public String getNotes() {
47 public void setNotes(String notes) {
51 public String getType() {
55 public void setType(String type) {
59 public String getNickname() {
63 public void setNickname(String nickname) {
64 this.nickname = nickname;
67 public List<String> getConsumes() {
71 public void setConsumes(List<String> consumes) {
72 this.consumes = consumes;
75 public List<Parameter> getParameters() {
79 public void setParameters(List<Parameter> parameters) {
80 this.parameters = parameters;
83 public List<ResponseMessage> getResponseMessages() {
84 return responseMessages;
87 public void setResponseMessages(List<ResponseMessage> responseMessages) {
88 this.responseMessages = responseMessages;