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

Swagger UI Customization #400

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 5 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
2,399 changes: 2,369 additions & 30 deletions release/openapi/swagger/package-lock.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion release/openapi/swagger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack"
"build": "webpack",
"dev": "webpack serve --mode development"
},
"author": "",
"license": "ISC",
Expand All @@ -16,6 +17,7 @@
"style-loader": "^4.0.0",
"webpack": "^5.94.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.1.0",
"yaml-loader": "^0.8.1"
},
"dependencies": {
Expand Down
9 changes: 7 additions & 2 deletions release/openapi/swagger/src/api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,17 @@
"https"
],
"swagger": "2.0",
"externalDocs": {
"description": "Join our Discord",
"url": "https://discord.com/invite/yVhQ7rC"
},
"info": {
"title": "Spacemesh API",
"description": "Welcome to the Spacemesh API documentation. You can find out more about Spacemesh at https://spacemesh.io and dive deeper into the protocol by visiting the docs at https://docs.spacemesh.io. Feel free to ask about or discuss anything related to the Spacemesh API in our [Discord server](https://discord.com/invite/yVhQ7rC).",
"contact": {
"name": "Spacemesh",
"url": "https://spacemesh.io/"
"email": "info@spacemesh.io"
},
"termsOfService": "https://spacemesh.io/terms/",
"license": {
"name": "MIT License",
"url": "https://github.com/spacemeshos/go-spacemesh/blob/develop/LICENSE"
Expand Down
2 changes: 1 addition & 1 deletion release/openapi/swagger/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const SwaggerUI = require('swagger-ui');
require('swagger-ui/dist/swagger-ui.css');
import './themes/swagger-ui.css';
const spec = require('./api.swagger.json');
SwaggerUI({
spec,
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading