File: swagger-ui.sh

package info (click to toggle)
python-drf-spectacular 0.28.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,748 kB
  • sloc: python: 14,174; javascript: 114; sh: 61; makefile: 30
file content (15 lines) | stat: -rwxr-xr-x 308 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash
if [ "$#" -ne "1" ] ; then
	echo usage: $0 SCHEMA
	exit 1
fi

SCHEMA=$1
SCHEMA_PATH=${PWD}/${SCHEMA}

docker pull swaggerapi/swagger-ui

echo
echo UI running at http://localhost:8088

docker run -p 8088:8080 -e SWAGGER_JSON=/schema.yml -v ${SCHEMA_PATH}:/schema.yml swaggerapi/swagger-ui