我想从POSTMAN Google Chrome扩展程序中发布数据.我想用不同的数据发出10个请求,它应该是同一时间.
在POSTMAN中可以这样做吗?如果有,任何人都可以解释我如何实现这一目标?
感谢您的时间.
我的 Json 架构
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"userInfo": {
"type": "object",
"properties": {
"firstName": { "type": "string" },
"lastName": { "type": "string" },
"emailAddress":{ "type": "string" }
},
"required": ["firstName", "lastName", "emailAddress"]
},
"userPassword": {
"type": "object",
"properties": {
"password": { "type": "string" },
"confirmPassword": { "type": "string" }
}
}
},
"type": "object",
"properties": {
"standaloneDeveloper": {
"$ref": "#/definitions/userInfo",
"$ref": "#/definitions/userPassword"
}
}
}
Run Code Online (Sandbox Code Playgroud)
数据总是被#/definitions/userPassword覆盖
我使用此模式得到以下输出
{
"standaloneDeveloper": {
"password": "ABCDEFGHIJKLMNOPQRSTUVWXYZABC",
"confirmPassword": "ABCDEFGHIJKLMNOPQRSTUVWXYZABC"
}
}
Run Code Online (Sandbox Code Playgroud)
预期产出
{ …Run Code Online (Sandbox Code Playgroud) 我正在获取纪元中的当前时间。未来如何添加1个月?
Date date = new Date();
int epoch = date.getTime();
Run Code Online (Sandbox Code Playgroud)
纪元的数据类型 - 整数($int64)
准确地说:我想从当前时间开始添加 30 天。
我正在使用一个允许嵌入 Groovy 和 Java 代码的工具。我使用Date类是因为我可以轻松地import java.text.DateFormat;和import java.text.SimpleDateFormat;. 我现有的工具不支持Instant。