net.cpollet.maven.plugins.postman.backend.adapters.ClassesAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of postman-maven-plugin Show documentation
Show all versions of postman-maven-plugin Show documentation
A maven plugin to export JAX-RS annotated classes and methods to Postman collection
The newest version!
package net.cpollet.maven.plugins.postman.backend.adapters;
import lombok.AllArgsConstructor;
import net.cpollet.maven.plugins.postman.frontend.api.Endpoint;
import java.util.List;
import java.util.stream.Collectors;
@AllArgsConstructor
public class ClassesAdapter {
private final List classes;
public List getEndpoints() {
return classes.stream()
.map(c -> new ClassAdapter(c).getEndpoints())
.flatMap(List::stream)
.collect(Collectors.toList());
}
}