swagger-ui-react-enhanced
swagger-ui-react-enhanced
is based on swagger-ui-react
, intend to add some UI customization ability via options.
-
Labels customizable:
localization:Parameters: '参数'Responses: '返回'ParamName: '名称'ParamDescription: '描述'ParamExampleValue: '示例'ParamExampleModel: '模型'ParamContentType: '参数类型'ParamRequired: '必填'ParamEnumAvailableValues: '可选值'ParamDefaultValue: '默认值'ParamDeprecated: '弃用'NoParameters: '没有参数'RespContentType: '返回类型'RespCode: '代码'RespDescription: '描述'RespLinks: '相关链接'Schemas: '模式'Models: '模型' -
showInfo
: Whether to show Info part, default totrue
-
showSchemes
: Whether to show Schemes selection dropdown, default totrue
-
allowTryItOut
: Allow Try it out button or not, default totrue
-
allowAuthorize
: Allow Authorize button or not, default totrue
-
allowFilter
: Allow operation filter or not, default tofalse
-
allowSwitchContentType
: Allow content type switching or not (request/response), default totrue
For anything else, check the Swagger-UI repository.