[GH-ISSUE #139] introduce some script language to parse the response and pass environment variable as request parameter #56

Closed
opened 2026-03-16 13:01:59 +03:00 by kerem · 8 comments
Owner

Originally created by @yrong on GitHub (Sep 6, 2019).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/139

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Originally created by @yrong on GitHub (Sep 6, 2019). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/139 **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] **Describe the solution you'd like** A clear and concise description of what you want to happen. **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. **Additional context** Add any other context or screenshots about the feature request here.
kerem 2026-03-16 13:01:59 +03:00
  • closed this issue
  • added the
    feature
    label
Author
Owner

@yrong commented on GitHub (Sep 7, 2019):

with postman we can parse result with javascript and save data to somewhere
var jsonData = JSON.parse(responseBody); tests["uuid found"] = jsonData.uuid; postman.setEnvironmentVariable("production_id", jsonData.uuid);

then in the next request we can reference the saved data
POST http://{{api_host}}:{{api_port}}/api/knowledge_point/{{production_id}}

This feature is vital for the CI flow

<!-- gh-comment-id:529064965 --> @yrong commented on GitHub (Sep 7, 2019): with postman we can parse result with javascript and save data to somewhere ` var jsonData = JSON.parse(responseBody); tests["uuid found"] = jsonData.uuid; postman.setEnvironmentVariable("production_id", jsonData.uuid); ` then in the next request we can reference the saved data ` POST http://{{api_host}}:{{api_port}}/api/knowledge_point/{{production_id}} ` This feature is vital for the CI flow
Author
Owner

@Nachiappa commented on GitHub (Sep 15, 2019):

Hi @liyasthomas ,
Do we have environment setup in current postwoman to implement this ?

<!-- gh-comment-id:531537632 --> @Nachiappa commented on GitHub (Sep 15, 2019): Hi @liyasthomas , Do we have environment setup in current postwoman to implement this ?
Author
Owner

@liyasthomas commented on GitHub (Sep 15, 2019):

@Nachiappa at present, there's no environment support.

<!-- gh-comment-id:531541093 --> @liyasthomas commented on GitHub (Sep 15, 2019): @Nachiappa at present, there's no environment support.
Author
Owner

@Nachiappa commented on GitHub (Sep 15, 2019):

Ok . Should we manage it in a separate ticket as an enhancement task?

<!-- gh-comment-id:531541152 --> @Nachiappa commented on GitHub (Sep 15, 2019): Ok . Should we manage it in a separate ticket as an enhancement task?
Author
Owner

@liyasthomas commented on GitHub (Sep 15, 2019):

That sounds okay.
I think it would be great to have this feature implemented. Environment setup along with import/export functionalities soothes things up.

<!-- gh-comment-id:531541460 --> @liyasthomas commented on GitHub (Sep 15, 2019): That sounds okay. I think it would be great to have this feature implemented. Environment setup along with import/export functionalities soothes things up.
Author
Owner

@Nachiappa commented on GitHub (Sep 15, 2019):

@liyasthomas Please review https://github.com/liyasthomas/postwoman/issues/147

<!-- gh-comment-id:531543210 --> @Nachiappa commented on GitHub (Sep 15, 2019): @liyasthomas Please review [https://github.com/liyasthomas/postwoman/issues/147](url)
Author
Owner

@jgroom33 commented on GitHub (Oct 8, 2019):

If possible, all responses should automatically be parsed. No code should be required to parse a response. All responses should be available for reference via {{ foo.response.bar }} in a subsequent call.

This assumes that each call has a label defined (i.e. foo)

<!-- gh-comment-id:539262239 --> @jgroom33 commented on GitHub (Oct 8, 2019): If possible, all responses should automatically be parsed. No code should be required to parse a response. All responses should be available for reference via {{ foo.response.bar }} in a subsequent call. This assumes that each call has a label defined (i.e. foo)
Author
Owner

@NBTX commented on GitHub (Oct 25, 2019):

Please refer to #218

<!-- gh-comment-id:546522575 --> @NBTX commented on GitHub (Oct 25, 2019): Please refer to #218
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#56
No description provided.