https://github.com/koho/swagd
Swagger UI Server
https://github.com/koho/swagd
Last synced: 9 months ago
JSON representation
Swagger UI Server
- Host: GitHub
- URL: https://github.com/koho/swagd
- Owner: koho
- License: mit
- Created: 2023-07-31T07:50:33.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-31T08:11:15.000Z (almost 3 years ago)
- Last Synced: 2025-09-23T06:18:38.628Z (10 months ago)
- Language: Python
- Size: 3.5 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# swagd
Swagger UI Server for debugging purpose.
## Install
```shell
pip install swagd
```
## Usage
Go to the directory containing openapi files. Run `swagd` to start the Swagger UI server:
```
swagd 8090
```
The port number is optional. See the python module `http.server` for supported arguments.
```shell
usage: swagd [-h] [-b ADDRESS] [-d DIRECTORY] [-p VERSION] [port]
positional arguments:
port bind to this port (default: 8000)
options:
-h, --help show this help message and exit
-b ADDRESS, --bind ADDRESS
bind to this address (default: all interfaces)
-d DIRECTORY, --directory DIRECTORY
serve this directory (default: current directory)
-p VERSION, --protocol VERSION
conform to this HTTP version (default: HTTP/1.0)
```