restdocs.tool.export.postman.exporter.Collection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of restdocs-tool-export Show documentation
Show all versions of restdocs-tool-export Show documentation
Generates AsciiDoc snippets via Spring Restdocs that are exports for Insomnia or Postman that can be download and imported.
package restdocs.tool.export.postman.exporter;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.HashSet;
import java.util.Set;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Collection {
private Info info;
@JsonProperty("item")
private Set- items = null;
public Info getInfo() {
return info;
}
public void setInfo(Info info) {
this.info = info;
}
public Set
- getItems() {
return items;
}
public void addItem(Item item) {
if(this.items == null) {
this.items = new HashSet<>();
}
this.items.add(item);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy