Skip to content

Save response example to a separate file #6530

@baek-sang

Description

@baek-sang

I have checked the following:

  • I've searched existing issues and found nothing related to my issue.

This feature

  • blocks me from using Bruno
  • would improve my quality of life in Bruno
  • is something I've never seen an API client do before

Describe the feature you want to add, and how it would change your usage of Bruno

  • Bruno 3.0.0-rc1

Potential problems when saving response examples to a single req_name.yml file.

  • Saving a 200k-line JSON response in the request file seems inefficient. The file size will get too big if we add multiple examples.
  • Image and binary files are even larger, and storing them as Base64 causes issues.

I’d like to request that req_name.yml only store metadata such as the URL, headers, params, and the response body file path. Please save the actual response body in a separate file within a subdirectory.

Mockups or Images of the feature

examples:
  - name: example
    request:
      url: https://example.com
      method: GET
      headers:
        - name: User-Agent
          value: chrome
    response:
      statusText: OK
      headers:
        - name: content-type
          value: application/json
      body:
        type: json
        data: ./response/random_file_name
  - name: example2
    request:
      url: https://example2.com
      method: GET
      headers:
        - name: User-Agent
          value: chrome2
    response:
      statusText: OK
      headers:
        - name: content-type
          value: application/json
      body:
        type: json
        data: ./response/d1k3_Ae1

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions