All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.swagger.models.apideclaration.Api Maven / Gradle / Ivy

There is a newer version: 1.0.71
Show newest version
package io.swagger.models.apideclaration;

import io.swagger.models.SwaggerBaseModel;

import java.util.ArrayList;
import java.util.List;


public class Api extends SwaggerBaseModel {
    private String path;
    private String description;
    private List operations = new ArrayList<>();

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List getOperations() {
        return operations;
    }

    public void setOperations(List operations) {
        this.operations = operations;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class ApiDescription {\n");
        sb.append("  path: ").append(path).append("\n");
        sb.append("  description: ").append(description).append("\n");
        sb.append("  operations: ").append(operations).append("\n");
        sb.append("  extraFields: ").append(getExtraFields()).append("\n");
        sb.append("}\n");
        return sb.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy