删除新建的postman文件
This commit is contained in:
parent
809179f00f
commit
9d2fc564db
|
@ -1,35 +0,0 @@
|
||||||
package com.power.doc.model.postman;
|
|
||||||
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author xingzi
|
|
||||||
* @date 2019 11 24 13:57
|
|
||||||
*/
|
|
||||||
public class InfoBean {
|
|
||||||
|
|
||||||
private final String _postman_id =UUID.randomUUID().toString();
|
|
||||||
private String name ="smart-doc";
|
|
||||||
private final String schema = "https://schema.getpostman.com/json/collection/v2.0.0/collection.json";
|
|
||||||
|
|
||||||
public InfoBean(String name) {
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String get_postman_id() {
|
|
||||||
return _postman_id;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getSchema() {
|
|
||||||
return schema;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,40 +0,0 @@
|
||||||
package com.power.doc.model.postman;
|
|
||||||
|
|
||||||
import com.power.doc.model.postman.request.EventBean;
|
|
||||||
import com.power.doc.model.postman.request.RequestBean;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author xingzi
|
|
||||||
* @date 2019 11 24 13:56
|
|
||||||
*/
|
|
||||||
public class ItemBean {
|
|
||||||
private String name;
|
|
||||||
private RequestBean request;
|
|
||||||
private List<EventBean> event;
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public RequestBean getRequest() {
|
|
||||||
return request;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRequest(RequestBean request) {
|
|
||||||
this.request = request;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<EventBean> getEvent() {
|
|
||||||
return event;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setEvent(List<EventBean> event) {
|
|
||||||
this.event = event;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,29 +0,0 @@
|
||||||
package com.power.doc.model.postman;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author xingzi
|
|
||||||
* @date 2019 11 24 14:01
|
|
||||||
*/
|
|
||||||
public class RequestItem {
|
|
||||||
|
|
||||||
private InfoBean info;
|
|
||||||
private List<ItemBean> item;
|
|
||||||
|
|
||||||
public InfoBean getInfo() {
|
|
||||||
return info;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setInfo(InfoBean info) {
|
|
||||||
this.info = info;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<ItemBean> getItem() {
|
|
||||||
return item;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setItem(List<ItemBean> item) {
|
|
||||||
this.item = item;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,35 +0,0 @@
|
||||||
package com.power.doc.model.postman.request;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author xingzi
|
|
||||||
* @date 2019 11 24 14:17
|
|
||||||
*/
|
|
||||||
public class BodyBean {
|
|
||||||
private String mode;
|
|
||||||
private String raw;
|
|
||||||
private OptionsBean options;
|
|
||||||
|
|
||||||
public String getMode() {
|
|
||||||
return mode;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMode(String mode) {
|
|
||||||
this.mode = mode;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getRaw() {
|
|
||||||
return raw;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRaw(String raw) {
|
|
||||||
this.raw = raw;
|
|
||||||
}
|
|
||||||
|
|
||||||
public OptionsBean getOptions() {
|
|
||||||
return options;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setOptions(OptionsBean options) {
|
|
||||||
this.options = options;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,26 +0,0 @@
|
||||||
package com.power.doc.model.postman.request;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author xingzi
|
|
||||||
* @date 2019 11 24 14:20
|
|
||||||
*/
|
|
||||||
public class EventBean {
|
|
||||||
private String listen;
|
|
||||||
private ScriptBean script;
|
|
||||||
|
|
||||||
public String getListen() {
|
|
||||||
return listen;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setListen(String listen) {
|
|
||||||
this.listen = listen;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ScriptBean getScript() {
|
|
||||||
return script;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setScript(ScriptBean script) {
|
|
||||||
this.script = script;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,54 +0,0 @@
|
||||||
package com.power.doc.model.postman.request;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author xingzi
|
|
||||||
* @date 2019 11 24 14:17
|
|
||||||
*/
|
|
||||||
public class HeaderBean {
|
|
||||||
|
|
||||||
private String key;
|
|
||||||
private String value;
|
|
||||||
private String type;
|
|
||||||
private boolean disabled;
|
|
||||||
private String name;
|
|
||||||
|
|
||||||
public String getValue() {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setValue(String value) {
|
|
||||||
this.value = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getType() {
|
|
||||||
return type;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setType(String type) {
|
|
||||||
this.type = type;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean isDisabled() {
|
|
||||||
return disabled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDisabled(boolean disabled) {
|
|
||||||
this.disabled = disabled;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getName() {
|
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setName(String name) {
|
|
||||||
this.name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getKey() {
|
|
||||||
return key;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setKey(String key) {
|
|
||||||
this.key = key;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,17 +0,0 @@
|
||||||
package com.power.doc.model.postman.request;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author xingzi
|
|
||||||
* @date 2019 11 24 14:18
|
|
||||||
*/
|
|
||||||
public class OptionsBean {
|
|
||||||
private RawBean raw;
|
|
||||||
|
|
||||||
public RawBean getRaw() {
|
|
||||||
return raw;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setRaw(RawBean raw) {
|
|
||||||
this.raw = raw;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,17 +0,0 @@
|
||||||
package com.power.doc.model.postman.request;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author xingzi
|
|
||||||
* @date 2019 11 24 14:19
|
|
||||||
*/
|
|
||||||
public class RawBean {
|
|
||||||
private String language;
|
|
||||||
|
|
||||||
public String getLanguage() {
|
|
||||||
return language;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLanguage(String language) {
|
|
||||||
this.language = language;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,55 +0,0 @@
|
||||||
package com.power.doc.model.postman.request;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author xingzi
|
|
||||||
* @date 2019 11 24 14:17
|
|
||||||
*/
|
|
||||||
public class RequestBean {
|
|
||||||
private String method;
|
|
||||||
private BodyBean body;
|
|
||||||
private String url;
|
|
||||||
private String description;
|
|
||||||
private List<HeaderBean> header;
|
|
||||||
|
|
||||||
public String getMethod() {
|
|
||||||
return method;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setMethod(String method) {
|
|
||||||
this.method = method;
|
|
||||||
}
|
|
||||||
|
|
||||||
public BodyBean getBody() {
|
|
||||||
return body;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setBody(BodyBean body) {
|
|
||||||
this.body = body;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getUrl() {
|
|
||||||
return url;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setUrl(String url) {
|
|
||||||
this.url = url;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getDescription() {
|
|
||||||
return description;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setDescription(String description) {
|
|
||||||
this.description = description;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<HeaderBean> getHeader() {
|
|
||||||
return header;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setHeader(List<HeaderBean> header) {
|
|
||||||
this.header = header;
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,37 +0,0 @@
|
||||||
package com.power.doc.model.postman.request;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author xingzi
|
|
||||||
* @date 2019 11 24 14:20
|
|
||||||
*/
|
|
||||||
public class ScriptBean {
|
|
||||||
private String id;
|
|
||||||
private String type;
|
|
||||||
private List<String> exec;
|
|
||||||
|
|
||||||
public String getId() {
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setId(String id) {
|
|
||||||
this.id = id;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getType() {
|
|
||||||
return type;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setType(String type) {
|
|
||||||
this.type = type;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<String> getExec() {
|
|
||||||
return exec;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setExec(List<String> exec) {
|
|
||||||
this.exec = exec;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue