Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested params #7

Open
shaneardell opened this issue Nov 17, 2016 · 1 comment
Open

Nested params #7

shaneardell opened this issue Nov 17, 2016 · 1 comment

Comments

@shaneardell
Copy link

How would I do nested params?

I'm trying to test a user registration via an API, and the params should be formatted as:

{
  "registration": {
    "email": "me@email.com",
    "password": "12345678",
    "first_name": "John",
    "last_name": "Smith",
    "campus_id": 129,
    "unique_hardware_id": "1234567890"
  }
}

I have it working with controller and acceptance tests, but not sure how to format the params like this in your tool.

@philip
Copy link

philip commented Dec 20, 2016

@shaneardell That looks like a request body, something this client should probably add (and also something I was looking for). In cURL it'd be similar to passing in --data, so also allowing the file (e.g., @file.json) option for this would be useful.

So, I think your request is to add a generic --data like option that'd use a textarea box for input, and optionally with a [file select] option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants