io.github.pangzixiang.whatsit.vertx.swagger.model.SwaggerJson Maven / Gradle / Ivy
package io.github.pangzixiang.whatsit.vertx.swagger.model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SwaggerJson {
private final String swagger = "2.0";
private Info info;
private String host;
private String basePath;
private Tags tags;
private final List schemas = List.of("http", "https");
private final Map> paths = new ConcurrentHashMap<>();
private final Map securityDefinitions = new ConcurrentHashMap<>();
public void addPath(String path, Map swaggerApiDetailMap) {
this.paths.put(path, swaggerApiDetailMap);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy