以哈希数组为值的 Postman chrome 扩展数组、Postman、chrome

2023-09-08 08:52:16 作者:回不去的曾经℡

我的数据如下所示:

我看了这篇文章 postman chrome extension 上的数组值,所以我知道如何使用 postman 将带有参数的 post 请求从 age 发送到 skillset,我的问题是 work_experience,它是一个哈希数组,我想在postman中输入work_experience,从中可以看到是一个哈希数组.

I took a look at this post Array value on postman chrome extension, so I know how to use postman to send post request with parameters from age to skillset, my problem is the work_experience, it's an array of hashes, I want to input the work_experience in postman, from which you can see is an array of hashes.

那么这可能吗?如果您知道可以做到这一点的更好的 chrome 扩展程序,请随时回答或评论

So is this possible? And if you know a better chrome extension that can do this, feel free to answer or comment

附言

虽然这应该是显而易见的,但是为了投票关闭这个的人不清楚,我的目的是模拟我的移动 ios 应用程序将发送到我的服务器的 api 而没有每次运行应用程序时,实际上都使用 ios 应用程序在每个文本字段上输入.

Although this is should be obvious, but for the sake of the person who voted to close this for being unclear, my purpose is to simulate what my mobile ios app would send to my server's api without actually using the ios app to type on every textfield every time I run the app.

推荐答案

你可以把嵌套的子键放在括号里.因此,您可以在表单数据字段中定义一些键/值对,如下所示:

You can put nested sub-keys in brackets. So you could define some of your key/value pairs in the form-data fields like this:

key: work_experience[0][company_name] 
value: asdfdfaf

key: work_experience[0][end_date] 
value: 12/21/2121

key: work_experience[1][company_name]
value: fdjfkjdfjk

key: work_experience[1][end_date]
value: 1/3/15