Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

README.md 4.8 KiB

há 4 anos
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # <img src="https://raw.githubusercontent.com/swagger-api/swagger.io/wordpress/images/assets/SWU-logo-clr.png" width="300">
  2. [![NPM version](https://badge.fury.io/js/swagger-ui.svg)](http://badge.fury.io/js/swagger-ui)
  3. [![Build Status](https://jenkins.swagger.io/view/OSS%20-%20JavaScript/job/oss-swagger-ui-master/badge/icon?subject=jenkins%20build)](https://jenkins.swagger.io/view/OSS%20-%20JavaScript/job/oss-swagger-ui-master/)
  4. [![npm audit](https://jenkins.swagger.io/buildStatus/icon?job=oss-swagger-ui-security-audit&subject=npm%20audit)](https://jenkins.swagger.io/job/oss-swagger-ui-security-audit/lastBuild/console)
  5. ![total GitHub contributors](https://img.shields.io/github/contributors-anon/swagger-api/swagger-ui.svg)
  6. ![monthly npm installs](https://img.shields.io/npm/dm/swagger-ui.svg?label=npm%20downloads)
  7. ![total docker pulls](https://img.shields.io/docker/pulls/swaggerapi/swagger-ui.svg)
  8. ![monthly packagist installs](https://img.shields.io/packagist/dm/swagger-api/swagger-ui.svg?label=packagist%20installs)
  9. ![gzip size](https://img.shields.io/bundlephobia/minzip/swagger-ui.svg?label=gzip%20size)
  10. **👉🏼 Want to score an easy open-source contribution?** Check out our [Good first issue](https://github.com/swagger-api/swagger-ui/issues?q=is%3Aissue+is%3Aopen+label%3A%22Good+first+issue%22) label.
  11. **🕰️ Looking for the older version of Swagger UI?** Refer to the [*2.x* branch](https://github.com/swagger-api/swagger-ui/tree/2.x).
  12. This repository publishes to three different NPM modules:
  13. * [swagger-ui](https://www.npmjs.com/package/swagger-ui) is a traditional npm module intended for use in single-page applications that are capable of resolving dependencies (via Webpack, Browserify, etc).
  14. * [swagger-ui-dist](https://www.npmjs.com/package/swagger-ui-dist) is a dependency-free module that includes everything you need to serve Swagger UI in a server-side project, or a single-page application that can't resolve npm module dependencies.
  15. * [swagger-ui-react](https://www.npmjs.com/package/swagger-ui-react) is Swagger UI packaged as a React component for use in React applications.
  16. We strongly suggest that you use `swagger-ui` instead of `swagger-ui-dist` if you're building a single-page application, since `swagger-ui-dist` is significantly larger.
  17. ## Compatibility
  18. The OpenAPI Specification has undergone 5 revisions since initial creation in 2010. Compatibility between Swagger UI and the OpenAPI Specification is as follows:
  19. Swagger UI Version | Release Date | OpenAPI Spec compatibility | Notes
  20. ------------------ | ------------ | -------------------------- | -----
  21. 3.18.3 | 2018-08-03 | 2.0, 3.0 | [tag v3.18.3](https://github.com/swagger-api/swagger-ui/tree/v3.18.3)
  22. 3.0.21 | 2017-07-26 | 2.0 | [tag v3.0.21](https://github.com/swagger-api/swagger-ui/tree/v3.0.21)
  23. 2.2.10 | 2017-01-04 | 1.1, 1.2, 2.0 | [tag v2.2.10](https://github.com/swagger-api/swagger-ui/tree/v2.2.10)
  24. 2.1.5 | 2016-07-20 | 1.1, 1.2, 2.0 | [tag v2.1.5](https://github.com/swagger-api/swagger-ui/tree/v2.1.5)
  25. 2.0.24 | 2014-09-12 | 1.1, 1.2 | [tag v2.0.24](https://github.com/swagger-api/swagger-ui/tree/v2.0.24)
  26. 1.0.13 | 2013-03-08 | 1.1, 1.2 | [tag v1.0.13](https://github.com/swagger-api/swagger-ui/tree/v1.0.13)
  27. 1.0.1 | 2011-10-11 | 1.0, 1.1 | [tag v1.0.1](https://github.com/swagger-api/swagger-ui/tree/v1.0.1)
  28. ## Documentation
  29. #### Usage
  30. - [Installation](docs/usage/installation.md)
  31. - [Configuration](docs/usage/configuration.md)
  32. - [CORS](docs/usage/cors.md)
  33. - [OAuth2](docs/usage/oauth2.md)
  34. - [Deep Linking](docs/usage/deep-linking.md)
  35. - [Limitations](docs/usage/limitations.md)
  36. - [Version detection](docs/usage/version-detection.md)
  37. #### Customization
  38. - [Overview](docs/customization/overview.md)
  39. - [Plugin API](docs/customization/plugin-api.md)
  40. - [Custom layout](docs/customization/custom-layout.md)
  41. #### Development
  42. - [Setting up](docs/development/setting-up.md)
  43. - [Scripts](docs/development/scripts.md)
  44. ##### Integration Tests
  45. You will need JDK of version 7 or higher as instructed here
  46. https://nightwatchjs.org/gettingstarted/#selenium-server-setup
  47. Integration tests can be run locally with `npm run e2e` - be sure you aren't running a dev server when testing!
  48. ### Browser support
  49. Swagger UI works in the latest versions of Chrome, Safari, Firefox, and Edge.
  50. ### Known Issues
  51. To help with the migration, here are the currently known issues with 3.X. This list will update regularly, and will not include features that were not implemented in previous versions.
  52. - Only part of the parameters previously supported are available.
  53. - The JSON Form Editor is not implemented.
  54. - Support for `collectionFormat` is partial.
  55. - l10n (translations) is not implemented.
  56. - Relative path support for external files is not implemented.
  57. ## Security contact
  58. Please disclose any security-related issues or vulnerabilities by emailing [security@swagger.io](mailto:security@swagger.io), instead of using the public issue tracker.