The aim of this project is to allow the local execution and customization of swagger services using docker-compose
So far it allows to run two swagger services in localhost:
-
Swagger online editor using its official docker image
-
Swagger online code generator using its official doker image
The online editor allows the manual modifications of the specs and also makes direct requests to the online generator.
But if the generation must be local, because of privacy restrictions you can...
You can run the services this way:
```bash
docker-compose up
```
in case of some modification to the config files you might need:
```bash
docker-compose down
docker-compose build
docker-compose up
```
- Clone the swagger-codegen tool
git clone https://github.com/swagger-api/swagger-codegen
cd swagger-codegen
- Build the generator:
./run-in-docker.sh mvn clean
./run-in-docker.sh mvn package
- Build the online-generator:
cd modules/swagger-generator
docker build -t swaggerapi/swagger-generator .