先设置路径
然后可以定义下边数据(Key value) 也可以不定义 看你的情况
[{"mac": "4C-77-66-19-50-65","addressPattern": "98jd","platform": "ios","registrationId": "13332696824","message": "发送ios推送消息","occurrenceTime": 1640926650257},{"mac": "4C-77-66-19-50-65","addressPattern": "98jd","platform": "android","registrationId": "13332696824","message": "发送android推送消息","occurrenceTime": 1640926650257}
]
详细说明:1.外层[]
2.里面每一个{},就是─个对象
3.{}里面的最后一个字段不能有逗号
4.{}外面,除了最后一个不用加逗号,前面的都要加上逗号5.接收时间类型要时间戳OccurrenceTime
参考
Java postman发送json数据_java模拟postman发送请求_weixin_43652507的博客-CSDN博客
--------------------------------------------------------------------------------------------------------------------
端口测试 是否成功
测试工具
Apifox - API 文档、调试、Mock、测试一体化协作平台 - 接口文档工具,接口自动化测试工具,接口Mock工具,API文档工具,API Mock工具,API自动化测试工具https://apifox.com/?utm_source=baidu_pinzhuan&utm_medium=sem&utm_campaign=pinzhuan&utm_content=pinzhuan&utm_term=apifox
url是整个路径