resttesttest icon indicating copy to clipboard operation
resttesttest copied to clipboard

Nested params

Open shaneardell opened this issue 9 years ago • 1 comments

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": "[email protected]",
    "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.

shaneardell avatar Nov 17 '16 17:11 shaneardell

@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.

philip avatar Dec 20 '16 19:12 philip