以哈希数组为值的 Postman chrome 扩展 [英] Postman chrome extension with array of hashes as value

查看:30
本文介绍了以哈希数组为值的 Postman chrome 扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的数据如下所示:

我看了这篇文章 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

这篇关于以哈希数组为值的 Postman chrome 扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆