AnWeber / httpbook

Quickly and easily send REST, Soap, GraphQL, GRPC, MQTT and WebSocket requests directly within Visual Studio Code
https://httpyac.github.io/
MIT License
58 stars 4 forks source link

How to configure response output #39

Closed rngtng closed 2 years ago

rngtng commented 2 years ago

Is there a way to configure the response output similar as in CLI or the std-plugin? For me the full request/response cycle is show, whereas I'd like to see only the response body (at first).

AnWeber commented 2 years ago

VSCode should ship with this feature, but I do not know how to use it. See https://code.visualstudio.com/updates/v1_62#_notebooks and https://github.com/microsoft/vscode/issues/125876 That is one reason why I prefer std.plugin.

AnWeber commented 2 years ago

And maybe the MonacoEditor (#Ad) is interesting for you. The standard JSON display does not know a find dialog.

AnWeber commented 2 years ago

Did you see this dropdown? Select Output Mimetype and you can choose other renderer. image

rngtng commented 2 years ago

ah I haven't seen this, that's indeed a good start. I only can't select application/json there.. need to look in more detail why. thx

rngtng commented 2 years ago

nvm mind solved it. I had a test line enabled so mime type was different. I updated setting to output only failed tests, with that it works. nice! closing issue...

AnWeber commented 2 years ago

That's all the fun about the Notebook Editor. Here you could also directly integrate OpenMaps/ Leaflet for example.