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

[Suggestion] Previewing requests #235

Open
LukeBillo opened this issue Sep 28, 2023 · 0 comments
Open

[Suggestion] Previewing requests #235

LukeBillo opened this issue Sep 28, 2023 · 0 comments

Comments

@LukeBillo
Copy link

Problem

I have a (relatively) complicated set up involving quite a lot of variables at differing levels - environment, collection and request-specific. Before sending my request, I am prone to mistakes (forgetting to set a particular variable, being on the wrong environment) and may make an unintended request.

Proposed Solution

In a similar to fashion to Insomnia, allow users to see the request that the currently selected environment and variables would result in.

As an example:

meta {
  name: GET some resource
  type: http
  seq: 15
}

get {
  url: http://my-service{{ suffix }}/some-resource/{{ resourceId }}
  body: json
}

headers {
  Content-Type: application/json
  TenantId: {{ tenantId }}
}

body:json {
  {
    "testMe": {{ someValue }}
  }
}

vars:pre-request {
  resourceId: '12345'
  someValue: 'test'
}

When viewing this in the GUI, I'd expect to see the URL displayed something like:

http://my-service[suffix: 'production.url']/some-resource/[resourceId: '12345']

Assuming suffix: 'production.url' is set at an environment level, and resourceId: '12345' set at the request-level. This could also show in other places, such as when viewing the body:

{
  "testMe": [someValue: 'test']
}

Hopefully this issue format is alright - I couldn't find an issue template in your contributing guidelines. Feel free to close and ask me to open a new one with a particular format if it's unacceptable.

While I'm here, I'd just like to say that I've recently migrated from Insomnia (due to their recent changes) and I'm really enjoying Bruno. Thank you for a great tool, and I will consider contributing if I get some spare time.

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

1 participant