Coder Social home page Coder Social logo

[Feature Request] Provide a Response Form to view Response just like Request form showing all field names and path underneath about grpcui HOT 1 OPEN

alapativ2 avatar alapativ2 commented on June 3, 2024
[Feature Request] Provide a Response Form to view Response just like Request form showing all field names and path underneath

from grpcui.

Comments (1)

jhump avatar jhump commented on June 3, 2024

@alapativ2, FYI, versions prior to 1.2.0 actually used an HTML layout to display the response instead of the text area with the JSON contents. But it turns out that RPC schemas often have asymmetric message complexity: the request messages are often simple/small, but response message are often large/complex. So while it is usually reasonable to render a form with the request, rendering responses into HTML is often not reasonable (like for RPCs with large responses) and led to non-trivial performance issues.

There is actually a TODO in the code to provide an HTML layout for the response (in a way, restoring the old functionality), but it would likely be based on user-selection vs. being the default, so as to only be a possible performance issue when the user explicitly requests it to be rendered that way. BTW, things that were missing from the HTML response in those old pre-v1.2.0 versions (things which weren't added to the request HTML until v1.3.0) are extra response schema information. Ideally, if/when the HTML response feature is added, the structure would show not just the field names and values but also provide info about the field types and even have tool-tips/hover information to show fields' comments and options -- just like is available in the request form.

from grpcui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.