OpenAPI document with multiple document entries, powered by swagger-ui
- Make sure nodejs and yarn are installed.
- Clone this repo as a starting point.
# git clone https://github.com/biggates/swagger-ui-with-menu.git
- Install all dependencies.
# yarn
- Start the project, an empty web page will automatically opened in your browser.
# yarn start
- In
specs
folder, create anyjson
oryaml
files and fill in contents using any text editor. - Your browser will refresh as spec files are saved to disk.
- All files in
external
folder are copied todist
and available to be referenced in OpenAPI specs.
Run yarn build
and deploy everything under dist
folder.
- Html template (title, dom, etc.)
You can directly edit src/assets/index.html
to change the html content.
- Styles
As swagger-ui does not provide any scss files, all the styles can only be overridden in the following two css files:
- All swagger related styles are in
src/style/style.css
. - All other styles are in
src/assets/styles/style.css
.