Skip to content

Commit 0fc13cd

Browse files
committed
Updated readme with information on how to generate server stub code given the update to OAS 3.0
1 parent 9de0c2d commit 0fc13cd

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,21 @@ Models as a Service (MaaS) API. This is specified using Swagger. See below for i
55
To use this, run the following:
66

77
```
8-
docker pull swaggerapi/swagger-editor
8+
docker pull swaggerapi/swagger-editor:latest
99
docker run -d -p 80:8080 swaggerapi/swagger-editor
1010
```
1111

12-
This will run Swagger Editor (in detached mode) on port 80 on your machine, so you can open it by navigating to http://localhost in your browser.
12+
This will run Swagger Editor (in detached mode) on port 80 on your machine, so you can open it by navigating to http://localhost in your browser.
13+
14+
# Open API Code Generation
15+
16+
Unfortunately, the current Swagger Editor does not support code gen for Open API 3.0 and Flask. To generate the server stub use:
17+
18+
```
19+
wget http://central.maven.org/maven2/org/openapitools/openapi-generator-cli/3.3.4/openapi-generator-cli-3.3.4.jar -O openapi-generator-cli.jar
20+
21+
java -jar openapi-generator-cli.jar generate \
22+
-i model_service_api.yaml \
23+
-l python-flask \
24+
-o Rest-Server-UPDATE
25+
```
File renamed without changes.

0 commit comments

Comments
 (0)