redoc icon indicating copy to clipboard operation
redoc copied to clipboard

Public label

Open monica-m-ps opened this issue 2 years ago • 8 comments
trafficstars

Describe the problem to be solved I'm working on https://docs.dojo.tech/payments/api#tag/Customers. The next set of APIs will have one public url for each method (in staging still), so there is no differentiating factor except the url. The GET / POST methods will be exactly the same on the left panel, like duplicated.

Describe the solution you'd like A label to show that this method is Public to clarify the duplicated methods.

Describe alternatives you've considered Trying to edit the current CSS or tried adding a star to the public method. But that looks off.

Additional context image

In this image, I need to differentiate between the methods. One of them is public. It'd be great to have a label.

monica-m-ps avatar Aug 30 '23 13:08 monica-m-ps

Maybe we should combine it with the x-badges proposal: https://github.com/Redocly/redoc/pull/1947

RomanHotsiy avatar Sep 03 '23 04:09 RomanHotsiy

There are options here, but it would need tool changes. OpenAPI uses tags for applying labels to endpoints but we use those for navigation, which makes it hard to use the feature for anything else. The best workaround available today I think is to give different API endpoints different summaries, even if it's a "(public)" suffix, so that they can be seen in the navigation.

lornajane avatar Sep 08 '23 08:09 lornajane

This workaround is temporary but we still require a solution because this causes duplication in the side menu. Will this be picked up anytime soon?

monica-m-ps avatar Oct 12 '23 10:10 monica-m-ps

@monica-m-ps I don't have a timescale on this, but we'll keep the issue updated if there are updates.

lornajane avatar Nov 23 '23 16:11 lornajane

@lornajane any update here? I initially submitted this #1399 and then a pull request was opened to support this. Now there is discussion on this being picked up by your team. Will this be a part of community?

JSSAggie avatar Feb 14 '24 15:02 JSSAggie

Can you point me to the discussion you mean? I don't have any updates - these will be added to this issue when we have something.

lornajane avatar Feb 19 '24 12:02 lornajane

The x-badges proposal already covers this case. There is more conversation and context in #1399. I think we should close this one and move the discussion to #1399.

adamaltman avatar Mar 23 '24 13:03 adamaltman