restdocs.tool.export.insomnia.exporter.Resource 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.
The newest version!
package restdocs.tool.export.insomnia.exporter;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
import java.util.Set;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Resource {
@JsonProperty("_type")
private String type;
@JsonProperty("_id")
private String id;
private String parentId;
@JsonProperty("created")
private Long created;
@JsonProperty("modified")
private Long modified;
private String name;
private String method;
private String url;
private Body body;
private Set headers;
private Set parameters;
private Map data;
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getParentId() {
return parentId;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
public Long getCreated() {
return created;
}
public void setCreated(Long created) {
this.created = created;
}
public Long getModified() {
return modified;
}
public void setModified(Long modified) {
this.modified = modified;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getMethod() {
return method;
}
public void setMethod(String method) {
this.method = method;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public Body getBody() {
return body;
}
public void setBody(Body body) {
this.body = body;
}
public Set getHeaders() {
return headers;
}
public void setHeaders(Set headers) {
this.headers = headers;
}
public Set getParameters() {
return parameters;
}
public void setParameters(Set parameters) {
this.parameters = parameters;
}
public Map getData() {
return data;
}
public void setData(Map data) {
this.data = data;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy