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.netconf.sal.rest.doc.swagger;
10 import java.util.List;
13 * Implementation of swagger spec (see <a href=
14 * "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-
16 * operation-object</a>)
18 public class Operation {
19 private String method;
20 private String summary;
23 private String nickname;
24 private List<String> consumes;
25 private List<Parameter> parameters;
26 private List<ResponseMessage> responseMessages;
28 public String getMethod() {
32 public void setMethod(String method) {
36 public String getSummary() {
40 public void setSummary(String summary) {
41 this.summary = summary;
44 public String getNotes() {
48 public void setNotes(String notes) {
52 public String getType() {
56 public void setType(String type) {
60 public String getNickname() {
64 public void setNickname(String nickname) {
65 this.nickname = nickname;
68 public List<String> getConsumes() {
72 public void setConsumes(List<String> consumes) {
73 this.consumes = consumes;
76 public List<Parameter> getParameters() {
80 public void setParameters(List<Parameter> parameters) {
81 this.parameters = parameters;
84 public List<ResponseMessage> getResponseMessages() {
85 return responseMessages;
88 public void setResponseMessages(List<ResponseMessage> responseMessages) {
89 this.responseMessages = responseMessages;