jeroen / resttesttest

A native in-browser tool for testing REST/CORS services. Builds on jQuery and Bootstrap.
https://resttesttest.com/
198 stars 81 forks source link

Nested params #7

Open shaneardell opened 7 years ago

shaneardell commented 7 years ago

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 commented 7 years ago

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