邮递员Chrome扩展程序,使用哈希数组作为值 [英] Postman chrome extension with array of hashes as value

查看:98
本文介绍了邮递员Chrome扩展程序,使用哈希数组作为值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个看起来像这样的数据:

I have a data that looks like this:

我看了这篇帖子邮递员Chrome扩展名上的数组值,因此我知道如何使用邮递员发送参数为 age 的邮寄请求技能组,我的问题是 work_experience ,它是一个散列数组,我想输入 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

PS

虽然这应该很明显,但是为了投票赞成不清楚而关闭它的人,我的目的是模拟移动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

这篇关于邮递员Chrome扩展程序,使用哈希数组作为值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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