5

Is it possible to make a request like you would in a swagger.io html page in the redoc API page? Or is redoc just to display the details of the API?

Blu
  • 4,036
  • 6
  • 38
  • 65
Sakib
  • 1,503
  • 4
  • 26
  • 39

3 Answers3

13

I'm the author of ReDoc.

At the moment there is no API console functionality implemented in ReDoc. But we have this in the roadmap.

Hopefully this will be implemented in 4-5months

update: https://redoc.ly/docs/api-reference-docs/console-overview/

From the docs:

warning

The Try it feature is not available in Redoc's "community edition". You will need access to Redocly's Reference docs or Developer portal to use the Try it feature.

jmunsch
  • 22,771
  • 11
  • 93
  • 114
RomanHotsiy
  • 4,978
  • 1
  • 25
  • 36
  • 1
    Swagger already has a console so sticking with that. – Dživo Jelić Feb 01 '22 at 13:59
  • 1
    Well, that's fairly disappointing. We may have to move on to swagger-ui (which is a shame because ReDoc does offer a nicer looking page.) – AlexanderF Mar 03 '22 at 15:08
  • could you please answer my question from here https://stackoverflow.com/questions/75383408/how-to-hide-the-server-host-but-show-the-base-path-in-redoc I've been banging my head from past few weeks but didn't found anything worth fixing my issue. – Danish Hasan Feb 18 '23 at 16:42
7

Update April 2023:

I found this as the best alternative https://rapidocweb.com/ It's not just better than Redoc, but also (IMHO) better than their paid version.

It's extremely customizable.

Update Oct 2020:

As per maintainer: https://github.com/Redocly/redoc/issues/53#issuecomment-576377856 Open source version of ReDoc wont have API console functionality.

If you want you can get the paid version. As for me, I will go find an alternative :)

Juan Carlos
  • 490
  • 5
  • 17
  • Did you find an alternative? I'm looking for a standalone version like redoc has that dynamically loads the doc by consuming the spec url. – storesource Oct 17 '20 at 16:40
  • @storesource no, sorry. We might just have to make our own. There is a fork of redoc that has the api console, but havent tried it yet. Ill use this post to update if i find anything interesting out there. Please let me know if you do as well. – Juan Carlos Oct 18 '20 at 21:08
  • 1
    Here is some fork with initial console support: https://github.com/raha1923/redoc/pull/1 – ubombi Mar 09 '21 at 16:50
  • https://github.com/swagger-api/swagger-ui – dijonkitchen Apr 19 '23 at 20:35
  • 1
    I updated my answer with a new option!! @storesource – Juan Carlos Apr 20 '23 at 14:32
7

After wasted few days, I understand redoc only have making request feature on their commercial version, so I switch to its alternatives.

If you use react, you can try openapi-react, similar to redoc, but it has function to issue http request.

Check https://www.npmjs.com/package/openapi-react

Like
  • 131
  • 1
  • 1