Giter Site home page Giter Site logo

redocly / redoc Goto Github PK

View Code? Open in Web Editor NEW
22.5K 22.5K 2.2K 54.6 MB

📘 OpenAPI/Swagger-generated API Reference Documentation

Home Page: https://redocly.github.io/redoc/

License: MIT License

JavaScript 1.06% HTML 0.36% TypeScript 97.81% Shell 0.46% Dockerfile 0.31%
api-documentation documentation-generator documentation-tool hacktoberfest openapi openapi-specification openapi3 openapi31 reactjs redoc swagger

redoc's People

Contributors

adamaltman avatar alexvarchuk avatar anastasiia-developer avatar andriyl avatar bfirsh avatar brendo avatar brushmate avatar cesarlevel avatar dependabot[bot] avatar hcloward avatar ivangoncharov avatar jderusse avatar kedashoe avatar khorolets avatar knidarkness avatar leocete avatar lornajane avatar m-mohr avatar marshevskyy avatar mike-stead-deltatre avatar nanov avatar oprysk avatar romanhotsiy avatar romanpidkostelnyi avatar stasiukanya avatar swapnilogale avatar tatomyr avatar waldyrious avatar zakcodes avatar zalesky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

redoc's Issues

Extend tests

Need move some of removed unit tests to e2e:

  • click on menu item should scroll to element
  • scroll down/up should update active item in menu
  • expand schema
  • discriminator buttons
  • expand examples
  • permanent links

Also need to add unit tests for services

Feature: synchronize code samples

If some language was selected for an operation this language should be automatically selected for all other operations (where it is specified)

x-environments

Idea of sandbox, live, integration, test, and other environments.

Group operation parameters by type

Currently all parameters dump together in one list.
It should be separate lists for different parameter type, like: header, body, query, path, etc.

API Console feature

Implement API Console functionality.

Each method in ReDoc will have a button: “Try this method” which will open interactive console modal window.

There is the list of key features that should be implemented in the first version:

  • Ability to send GET, POST, PUT, DELETE, UPDATE requests
  • Ability to input/use/save authorization credentials
  • Show UI for easy entering parameters for path, headers, query and body (payload) parameters
  • UI should show selectbox for enums, checkboxes for boolean, text input for other simple types
  • Request should be validated before send according to OpenAPI spec
  • Support different environments (e.g. sandbox, dev, testing, etc) through OpenAPI vendor extension (each env will have unique base url and description) + ability to set default env specially for API-console
  • For most parts response will be shown “as is”. JSON response will be only prettified (with possibility of collapsing). The other responses will be represented as strings.
  • Show response headers that are documented in swagger. HTTP response headers that are not documented will be hidden under “Show undocumented response headers” button

Demo with non-default swagger file provide incorrect persistent links

Show supported mime types for form parameters

From Swagger 2.0 spec:

Used to describe the payload of an HTTP request when either application/x-www-form-urlencoded, multipart/form-data or both are used as the content type of the request

It's good to show which mime types supported for 'form' parameters in this particular method.

Relatively slow loading on IE11/Edge

On big schemas IE11/Edge works slower relative to other browsers.

The key bottleneck is generation a lot of ui elements for schema representations

Show errors and warnings in the top of the page

As suggested by @darklynx in #6

Possibility to configure displayed error level (warnings/errors), possibility to disable any warnings/errors.
Also show general errors (loading, parsing error)

  • general errors (404 while loading file, parsing error)
  • internal errors
  • warnings

Add in-page search with result highlighting (feature request)

It would be great to implement an in-page search with results highlighting similar to something available here: http://docs.fidor.de (just enter the word "unique" within the search input field and click on one of the found references)

If you look at http://docs.fidor.de/javascripts/all.js there are a lot of open source JavaScript libraries that helps to implement search and highlight the results, like:

Looks like it is possible to implement an in-page search with support from those libraries that would add a lot of credits to the wonderful ReDoc project! This may become a killing feature of the project ;)

Thank you in advance!

allOf works incorrect

id:
  description: The customer identifier string
  readOnly: true
  allOf:
    - $ref: "#/definitions/ResourceId"

throws error but it is correct definition

Render JsonSchema constraints

  • readOnly
  • minLength
  • maxLength
  • pattern
  • minItems
  • maxItems
  • multipleOf
  • defaults
  • file payload
  • readOnly - don't show readOnly fields in request schema
  • No need to mark readOnly in response

to be continued...

Cleanup bower package

Currently Bower package has to many unneeded files and dirs:

$ ls bower_components/redoc/ -1
bower.json
dist
docs
gulpfile.js
karma.conf.js
LICENSE
package.json
protractor.conf.js
README.md
system.config.js

redoc-cli: test script to run on user-supplied openapi spec

It would be useful to have script or tool to run in browser tests on user's Swagger spec.
It could be as simple as running a headless browser and check that there is no errors or warnings.
Would be the ideal test to integrate into CI just before deploying Swagger spec.
Important thing is to output banner which explains that this errors could be unrelated to Swagger spec but purely ReDoc issues and if so ask user to open issue in ReDoc repo.

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.