一.postman传入对象方法
1.选择post方式;
2.Headers里面:
Key: Content-Type Value: application/json(可不写)
3.Body里面,选择raw,填入键值对
例如:{"title":"111","type":"本科生","tags":["网络安全","漏洞挖掘","轻松掌握入门学习"],"cover":"","another":[],"mainId":5,"courseId":0,"userId":5}
二.postman请求上传文件
1.填写headers
Key:Content-Type Value:multipart/form-data(可不填)
2.填写body
选择form-data
然后选择文件file
点击添加文件,最后发送即可