net.nemerosa.ontrack.boot.support.APIMethodInfo Maven / Gradle / Ivy
package net.nemerosa.ontrack.boot.support;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import net.nemerosa.ontrack.model.structure.NameDescription;
import java.util.List;
@Data
public class APIMethodInfo {
@JsonIgnore
private final APIInfo apiInfo;
@JsonIgnore
private final String method;
private final String name;
private final String description;
private final String path;
private final List methods;
public APIMethodInfo(APIInfo apiInfo, String method, String name, String description, String path, List methods) {
this.apiInfo = apiInfo;
this.method = method;
this.name = name;
this.description = description;
this.path = path;
this.methods = methods;
}
public static APIMethodInfo of(APIInfo apiInfo, String method, NameDescription nd, String path, List methods) {
return new APIMethodInfo(apiInfo, method, nd.getName(), nd.getDescription(), path, methods);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy