developers icon indicating copy to clipboard operation
developers copied to clipboard

Support for arbitrary examples as "first class citizens" in the endpoint reference sidebar

Open irisli opened this issue 10 years ago • 0 comments

Proposal: Let arbitrary example types occupy a space in the example

This would let multiple examples for a single language to exist on the bar. This could also allow us to introduce more complex examples (like multiple examples) with accompanying explanation text.

Quick example mockup

screen shot 2016-02-19 at 4 27 27 pm ## Why

There is a disparity between streaming examples and "regular" language examples. A language can only have at most one code example.

In accounts-all, the streaming example is displayed as if it were content:

image

While the other examples get to occupy a tab:

image

irisli avatar Feb 19 '16 08:02 irisli