Skip to content

Finfra/swagger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swagger

Swagger UI and Editor

Docker build

cd ~/work-swagger/
git clone https://github.com/finfra/swagger
cd swagger

docker build --rm -t nowage/swagger:v1.0 .

Start

docker rm -f swagger-ui
docker run                                                     \
    -d                                                         \
    --name swagger-ui                                          \
    --hostname swagger-ui                                      \
    --network swagger-net                                      \
    -p 8080:8080                                               \
    -e SWAGGER_JSON=/usr/share/nginx/html/json/swagger.json    \
    -e SWAGGER_JSON_URL=http://$(hostname):8080/json/swagger.json      \
    -v ${PWD}/json:/usr/share/nginx/html/json/        \
    nowage/swagger:v1.0
sleep 1    
curl localhost:8080
curl localhost:8080/json/s.json       |head
curl localhost:8080/json/swagger.json |head

Releases

No releases published

Packages

No packages published