[GH-ISSUE #188] Cache view #71

Closed
opened 2026-03-16 13:11:09 +03:00 by kerem · 1 comment
Owner

Originally created by @jgroom33 on GitHub (Oct 8, 2019).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/188

No pre or post scripts should be necessary to handle json parsing a response and using a value from that response in a subsequent call.

When a labeled request is executed, the response of that request should be parsed as json by default and stored in the local cache (along with the request object)

The cache should be viewable in the UI and be editable.

Example cache:

foo: {
   request: {....}
   response: {
      body: { bar:5 }
      headers: {cookie:123}
   }
}

A subsequent request named bar, may reference {{ foo.response.headers.cookie }}

Originally created by @jgroom33 on GitHub (Oct 8, 2019). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/188 No pre or post scripts should be necessary to handle json parsing a response and using a value from that response in a subsequent call. When a labeled request is executed, the response of that request should be parsed as json by default and stored in the local cache (along with the request object) The cache should be viewable in the UI and be editable. Example cache: ``` foo: { request: {....} response: { body: { bar:5 } headers: {cookie:123} } } ``` A subsequent request named bar, may reference {{ foo.response.headers.cookie }}
kerem 2026-03-16 13:11:09 +03:00
Author
Owner

@liyasthomas commented on GitHub (Dec 6, 2019):

Export Collection feature address this issue, hence closing.

An example of a typical Collection Export:

[
  {
    "name": "My Collection",
    "folders": [
      {
        "name": "Folder 1",
        "requests": [
          {
            "url": "https://reqres.in",
            "path": "/api/users?page=2",
            "method": "GET",
            "auth": "None",
            "httpUser": "",
            "httpPassword": "",
            "passwordFieldType": "password",
            "bearerToken": "",
            "headers": [
              {
                "key": "head1",
                "value": "value1"
              },
              {
                "key": "head2",
                "value": "vaue2"
              }
            ],
            "params": [
              {
                "key": "page",
                "value": "2"
              }
            ],
            "bodyParams": [],
            "rawParams": "",
            "rawInput": false,
            "contentType": "",
            "requestType": "JavaScript XHR",
            "name": "My Request",
            "collection": 0
          }
        ]
      }
    ],
    "requests": [
      {
        "url": "https://reqres.in",
        "path": "/api/users",
        "method": "GET",
        "auth": "None",
        "httpUser": "",
        "httpPassword": "",
        "passwordFieldType": "password",
        "bearerToken": "",
        "headers": [],
        "params": [],
        "bodyParams": [],
        "rawParams": "",
        "rawInput": false,
        "contentType": "",
        "requestType": "JavaScript XHR",
        "name": "My Request",
        "collection": 0
      }
    ]
  }
]
<!-- gh-comment-id:562378338 --> @liyasthomas commented on GitHub (Dec 6, 2019): Export Collection feature address this issue, hence closing. An example of a typical Collection Export: ``` [ { "name": "My Collection", "folders": [ { "name": "Folder 1", "requests": [ { "url": "https://reqres.in", "path": "/api/users?page=2", "method": "GET", "auth": "None", "httpUser": "", "httpPassword": "", "passwordFieldType": "password", "bearerToken": "", "headers": [ { "key": "head1", "value": "value1" }, { "key": "head2", "value": "vaue2" } ], "params": [ { "key": "page", "value": "2" } ], "bodyParams": [], "rawParams": "", "rawInput": false, "contentType": "", "requestType": "JavaScript XHR", "name": "My Request", "collection": 0 } ] } ], "requests": [ { "url": "https://reqres.in", "path": "/api/users", "method": "GET", "auth": "None", "httpUser": "", "httpPassword": "", "passwordFieldType": "password", "bearerToken": "", "headers": [], "params": [], "bodyParams": [], "rawParams": "", "rawInput": false, "contentType": "", "requestType": "JavaScript XHR", "name": "My Request", "collection": 0 } ] } ] ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#71
No description provided.