Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "fixes #13387: replaced ReDoc with RapiDoc for better user experience (#13388)" #14017

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions openmetadata-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -709,33 +709,11 @@
<prettyPrint>true</prettyPrint>
<swaggerConfig>
<servers>
<server>
<url>/api</url>
<description>Current Host</description>
</server>
<server>
<url>http://localhost:8585/api</url>
<description>Endpoint URL</description>
</server>
</servers>
<securityRequirements>
<securityRequirement>
<entries>
<entry>
<name>BearerAuth</name>
</entry>
</entries>
</securityRequirement>
</securityRequirements>
<components>
<securitySchemes>
<BearerAuth>
<type>http</type>
<description>Provide Token from Bots settings section in OMD or your Authorization Provider</description>
<scheme>bearer</scheme>
</BearerAuth>
</securitySchemes>
</components>
<info>
<title>OpenMetadata Apis</title>
<version>${project.parent.version}</version>
Expand Down
2 changes: 1 addition & 1 deletion openmetadata-ui/src/main/resources/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@
"@azure/msal-browser": "^2.37.0",
"@azure/msal-react": "^1.5.11",
"@deuex-solutions/react-tour": "^1.2.5",
"@deuex-solutions/redoc": "^2.0.0-rc.35",
"@fontsource/poppins": "^5.0.0",
"@fontsource/source-code-pro": "^5.0.0",
"@github/g-emoji-element": "^1.1.5",
"@okta/okta-auth-js": "^6.4.0",
"@okta/okta-react": "^6.4.3",
"@rjsf/core": "5.4.0",
"rapidoc": "9.3.4",
"@rjsf/utils": "5.4.0",
"@rjsf/validator-ajv8": "5.4.0",
"@tiptap/core": "^2.1.7",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,36 +11,22 @@
* limitations under the License.
*/

import { RedocStandalone } from '@deuex-solutions/redoc';
import React from 'react';
import {
GRAPH_BACKGROUND_COLOR,
PRIMERY_COLOR,
TEXT_BODY_COLOR,
} from '../../constants/constants';
import RapiDocReact from './RapiDocReact';
import './swagger.less';

const SwaggerPage = () => {
// return (<RedocStandalone
// specUrl="https://raw.githubusercontent.com/deuex-solutions/redoc/master/demo/petstore.json"
// />);
return (
<div
className="container-fluid"
data-testid="fluid-container"
id="doc-container">
<RapiDocReact
allow-spec-file-download
persist-auth
font-size="large"
nav-bg-color={GRAPH_BACKGROUND_COLOR}
nav-item-spacing="compact"
nav-text-color={TEXT_BODY_COLOR}
primary-color={PRIMERY_COLOR}
regular-font="Open Sans"
render-style="focused"
show-header={false}
show-method-in-nav-bar="as-colored-block"
spec-url="./swagger.json"
text-color={TEXT_BODY_COLOR}
theme="light"
<RedocStandalone
options={{ enableConsole: true }}
specUrl="./swagger.json"
/>
</div>
);
Expand Down
Loading
Loading