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

Add Response examples to a request #4075

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

codeasashu
Copy link

@codeasashu codeasashu commented May 19, 2024

Closes #1875

Description

Since 1894 has gone stale, I've decided to revamp the feature once again. My main motivations are:

  1. Save common useful responses to a request
  2. This is a prerequisite to support openapi export ([feature]: Export to OpenAPI format #3821)
  3. Ability to edit and share responses along with request, provides more fulfilling API experiences
  • Save responses of request
  • Rename, delete and edit saved responses
  • Import responses from postman collection
  • Import responses from openapi
  • Export responses

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

@thetronjohnson
Copy link
Member

hi @codeasashu we might bring this feature only to the API Documentation side of Hoppscotch, for which we're currently developing a proof of concept (POC). Hence, we might not consider this feature for the API Testing side of Hoppscotch. Can we get back to this conversation once the POC is ready

@codeasashu
Copy link
Author

codeasashu commented May 22, 2024

@thetronjohnson Thank you for responding. Yes, examples (or saved responses) are essentially a part of documentation.

Curious to know if the API Docs you're working on, is compatible with openapi? We've been waiting long enough for this to land, so I am not expecting much. I just want to be able to share my hoppscotch collection and tell how 200 and 404 will look like. Waiting for 3 years to be able to document such seemingly simple thing is just out of scope for me (no offense, the tool is still great).

I've already made openapi doc converters for postman and insomnia, so this one shouldn't be hard. I feel supporting openapi would open endless possibilities, due to the large ecosystem it supports.

Not expecting this to land in mainstream anytime soon, but can't wait on promises no more.

@thetronjohnson
Copy link
Member

@codeasashu yes it will be compatible with OpenAPI 💯

@codeasashu
Copy link
Author

@thetronjohnson Awesome!!! Finally a great news. Do you have any ETA/Roadmaps? Is it already in any sprint goals for this year? I'll be super happy to contribute in any way. Let me know if this can be prioritised.

@baek-sang
Copy link

We hope this feature will be included in the next desktop release.

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

Successfully merging this pull request may close these issues.

[feature]: Ability to save API response
3 participants