-
Notifications
You must be signed in to change notification settings - Fork 330
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 previewer for text/html #155
Comments
hi, can i work on this issue ? |
Sure @PCoder23, you can send across a PR so that we can discuss on it further. |
sure. |
Hi @animator @ashitaprasad |
@Yousef-Rabia you can use it, if it works. |
I have implemented the HTML rendering using the While this approach renders most of the content accurately (similar to Postman), one limitation is that images are not being rendered correctly. Aside from that, it’s very close to what you would expect in Postman’s "Preview" tab. I have attach screenshots showing the comparison between our application and Postman while previewing an API response. ScreenshotsVideo ExplanationBelow is a video demonstrating how the ScreenRecording_10-13-2024.16-39-50_1.MP4Looking forward to your feedback, and let me know if this approach works, or if there are other suggestions to improve it. |
@ashitaprasad Just following up on my previous implementation. Does this solution align with the direction you're looking for? One key advantage of the current implementation, using In contrast, with this approach, we can now fully render HTML responses with the ability to interact with the content dynamically, just like in a regular web browser. Users can follow links, submit forms, and navigate between pages seamlessly within the response pane. This adds a whole new dimension to debugging and exploring API responses, especially for complex HTML content. Given these additional capabilities, I would appreciate feedback and confirmation on whether I can move forward with this and make a PR. Let me know if this is in line with the project’s goals! |
@chetanr25 The current approach is incorrect as you have added a new Preview tab beside Response Body and Headers which is redundant. We already have Preview option inside Response Body which was built to render previewer based on response content type. Currently, it shows formatted HTML. In case webview works that will be shown here. |
Thank you for the feedback. Will work in it. |
Tell us about the task you want to perform and are unable to do so because the feature is not available
Users should be able to see rendered HTML in response preview.
The text was updated successfully, but these errors were encountered: