[PR #4382] [MERGED] feat: save api response #4779

Closed
opened 2026-03-17 02:17:02 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4382
Author: @nivedin
Created: 9/26/2024
Status: Merged
Merged: 9/30/2024
Merged by: @jamesgeorge007

Base: nextHead: feat/save-api-response


📝 Commits (10+)

  • d137364 chore: add new request version with response
  • f798be0 chore: add response UI
  • 2355165 chore: add i18n locale
  • 40ae223 chore: update Tab types
  • c0e865d chore: add response saving flow
  • c73cafb chore: update lenses to edit for example responses
  • 556fc99 chore: update tab type
  • f358c65 chore: update test
  • 436b9f7 chore: update response via lenses
  • e79733d chore: update response save flow

📊 Changes

84 files changed (+3074 additions, -315 deletions)

View changed files

📝 packages/hoppscotch-common/locales/en.json (+15 -2)
📝 packages/hoppscotch-common/src/components.d.ts (+8 -0)
📝 packages/hoppscotch-common/src/components/app/spotlight/entry/RESTRequest.vue (+2 -2)
📝 packages/hoppscotch-common/src/components/collections/AddRequest.vue (+3 -0)
📝 packages/hoppscotch-common/src/components/collections/Collection.vue (+1 -1)
packages/hoppscotch-common/src/components/collections/EditResponse.vue (+95 -0)
packages/hoppscotch-common/src/components/collections/ExampleResponse.vue (+247 -0)
📝 packages/hoppscotch-common/src/components/collections/MyCollections.vue (+54 -3)
📝 packages/hoppscotch-common/src/components/collections/Request.vue (+57 -3)
📝 packages/hoppscotch-common/src/components/collections/SaveRequest.vue (+26 -4)
📝 packages/hoppscotch-common/src/components/collections/TeamCollections.vue (+53 -4)
📝 packages/hoppscotch-common/src/components/collections/index.vue (+568 -28)
📝 packages/hoppscotch-common/src/components/embeds/Request.vue (+2 -2)
📝 packages/hoppscotch-common/src/components/embeds/index.vue (+2 -2)
📝 packages/hoppscotch-common/src/components/graphql/RequestOptions.vue (+6 -2)
📝 packages/hoppscotch-common/src/components/history/index.vue (+1 -0)
📝 packages/hoppscotch-common/src/components/http/ImportCurl.vue (+2 -0)
📝 packages/hoppscotch-common/src/components/http/Request.vue (+4 -4)
📝 packages/hoppscotch-common/src/components/http/RequestOptions.vue (+31 -8)
📝 packages/hoppscotch-common/src/components/http/RequestTab.vue (+3 -3)

...and 64 more files

📄 Description

Closes HFE-534 #1875

This feature adds the ability to save responses as example for a saved request.

https://github.com/user-attachments/assets/681f7203-ea51-4598-8c27-eb67f7f9fad1

TODO

  • Add support for Shared Workspaces
  • Add Import from Postman, OpenAPI
  • Fix bug while editing RAW content

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/4382 **Author:** [@nivedin](https://github.com/nivedin) **Created:** 9/26/2024 **Status:** ✅ Merged **Merged:** 9/30/2024 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `next` ← **Head:** `feat/save-api-response` --- ### 📝 Commits (10+) - [`d137364`](https://github.com/hoppscotch/hoppscotch/commit/d13736488df8e25d0f208592e5339e0baf7094fb) chore: add new request version with response - [`f798be0`](https://github.com/hoppscotch/hoppscotch/commit/f798be0420c6e2bc329e73e3a03f8a0089ce6233) chore: add response UI - [`2355165`](https://github.com/hoppscotch/hoppscotch/commit/23551659bae04d55f45650f86b74dfdc8917b30e) chore: add i18n locale - [`40ae223`](https://github.com/hoppscotch/hoppscotch/commit/40ae223bfd1d7c81207f10fac5e029eb0056e70a) chore: update Tab types - [`c0e865d`](https://github.com/hoppscotch/hoppscotch/commit/c0e865d34fc7891293959e915afdfe73f24c8812) chore: add response saving flow - [`c73cafb`](https://github.com/hoppscotch/hoppscotch/commit/c73cafb0c91f68e2662372b99e20b23439076e9d) chore: update lenses to edit for example responses - [`556fc99`](https://github.com/hoppscotch/hoppscotch/commit/556fc99b677cd3639ecf4edce8b3b5e12a9ed948) chore: update tab type - [`f358c65`](https://github.com/hoppscotch/hoppscotch/commit/f358c6589a5e4880702af515e1e7185e30071840) chore: update test - [`436b9f7`](https://github.com/hoppscotch/hoppscotch/commit/436b9f769c941ee819df012e6a47a50872f4b721) chore: update response via lenses - [`e79733d`](https://github.com/hoppscotch/hoppscotch/commit/e79733d89a6b722893aaabbffd72aaafb9db37e7) chore: update response save flow ### 📊 Changes **84 files changed** (+3074 additions, -315 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/locales/en.json` (+15 -2) 📝 `packages/hoppscotch-common/src/components.d.ts` (+8 -0) 📝 `packages/hoppscotch-common/src/components/app/spotlight/entry/RESTRequest.vue` (+2 -2) 📝 `packages/hoppscotch-common/src/components/collections/AddRequest.vue` (+3 -0) 📝 `packages/hoppscotch-common/src/components/collections/Collection.vue` (+1 -1) ➕ `packages/hoppscotch-common/src/components/collections/EditResponse.vue` (+95 -0) ➕ `packages/hoppscotch-common/src/components/collections/ExampleResponse.vue` (+247 -0) 📝 `packages/hoppscotch-common/src/components/collections/MyCollections.vue` (+54 -3) 📝 `packages/hoppscotch-common/src/components/collections/Request.vue` (+57 -3) 📝 `packages/hoppscotch-common/src/components/collections/SaveRequest.vue` (+26 -4) 📝 `packages/hoppscotch-common/src/components/collections/TeamCollections.vue` (+53 -4) 📝 `packages/hoppscotch-common/src/components/collections/index.vue` (+568 -28) 📝 `packages/hoppscotch-common/src/components/embeds/Request.vue` (+2 -2) 📝 `packages/hoppscotch-common/src/components/embeds/index.vue` (+2 -2) 📝 `packages/hoppscotch-common/src/components/graphql/RequestOptions.vue` (+6 -2) 📝 `packages/hoppscotch-common/src/components/history/index.vue` (+1 -0) 📝 `packages/hoppscotch-common/src/components/http/ImportCurl.vue` (+2 -0) 📝 `packages/hoppscotch-common/src/components/http/Request.vue` (+4 -4) 📝 `packages/hoppscotch-common/src/components/http/RequestOptions.vue` (+31 -8) 📝 `packages/hoppscotch-common/src/components/http/RequestTab.vue` (+3 -3) _...and 64 more files_ </details> ### 📄 Description Closes HFE-534 #1875 This feature adds the ability to save responses as example for a saved request. https://github.com/user-attachments/assets/681f7203-ea51-4598-8c27-eb67f7f9fad1 #### TODO - [x] Add support for Shared Workspaces - [x] Add Import from Postman, OpenAPI - [x] Fix bug while editing RAW content --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:17:02 +03:00
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#4779
No description provided.