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

restdocs.tool.export.postman.exporter.Collection Maven / Gradle / Ivy

Go to download

Generates AsciiDoc snippets via Spring Restdocs that are exports for Insomnia or Postman that can be download and imported.

There is a newer version: 0.0.6-RELEASE
Show newest version
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