-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* first version of openapi.yml * add swagger-ui * fix version * add documentation to app build docker stage * linted the yaml * remove console.log
- Loading branch information
Showing
8 changed files
with
2,830 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
extends: ["spectral:oas", "spectral:asyncapi"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../documentation/openapi.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { RouteObject } from "react-router-dom"; | ||
|
||
export default function swaggerUi(): RouteObject { | ||
return { | ||
path: "swagger-ui", | ||
async lazy() { | ||
const { default: SwaggerUI } = await import("swagger-ui-react"); | ||
await import("swagger-ui-react/swagger-ui.css"); | ||
return { | ||
Component() { | ||
return <SwaggerUI url="/swagger.yml" supportedSubmitMethods={[]} />; | ||
}, | ||
}; | ||
}, | ||
}; | ||
} |
Oops, something went wrong.